Add prometheus/prometheus.yml
This commit is contained in:
21
prometheus/prometheus.yml
Normal file
21
prometheus/prometheus.yml
Normal 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"
|
||||||
Reference in New Issue
Block a user