Add prometheus/prometheus.yml

This commit is contained in:
2025-11-18 17:33:08 +00:00
parent 5059211574
commit e946c57290

21
prometheus/prometheus.yml Normal file
View File

@@ -0,0 +1,21 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
# Scrape Prometheus itself
- job_name: "prometheus"
static_configs:
- targets: ["prometheus:9090"]
# Docker hosts (node_exporter on each)
- job_name: "docker-hosts"
static_configs:
- targets:
- "172.0.0.199:9100"
- "172.0.0.198:9100"
- "172.0.0.197:9100"
- "172.0.0.196:9100"
labels:
env: "prod"
role: "docker-host"