This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
hosts_to_monitor:
|
prometheus_prometheus_targets:
|
||||||
|
- "localhost:9090"
|
||||||
|
|
||||||
|
prometheus_node_exporter_targets:
|
||||||
- "localhost:9100"
|
- "localhost:9100"
|
||||||
- "10.7.10.96:9100"
|
- "10.7.10.96:9100"
|
||||||
- "10.7.10.97:9100"
|
- "10.7.10.97:9100"
|
||||||
|
|||||||
@@ -16,15 +16,11 @@
|
|||||||
- job_name: "prometheus"
|
- job_name: "prometheus"
|
||||||
metrics_path: "/metrics"
|
metrics_path: "/metrics"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets: "{{ prometheus_prometheus_targets }}"
|
||||||
- "localhost:9090"
|
|
||||||
- job_name: "node_exporter"
|
- job_name: "node_exporter"
|
||||||
metrics_path: "/metrics"
|
metrics_path: "/metrics"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets: "{{ prometheus_node_exporter_targets }}"
|
||||||
- "localhost:9100"
|
|
||||||
- "10.7.10.96:9100"
|
|
||||||
- "10.7.10.97:9100"
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: prometheus.prometheus.prometheus
|
- role: prometheus.prometheus.prometheus
|
||||||
|
|||||||
Reference in New Issue
Block a user