diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..a550dc1 --- /dev/null +++ b/prometheus/prometheus.yml @@ -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"