27 lines
662 B
Django/Jinja
27 lines
662 B
Django/Jinja
# my global config
|
|
---
|
|
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
# The job name is added as a label `job=<job_name>` to any timeseries
|
|
# scraped from this config.
|
|
- job_name: "prometheus"
|
|
# metrics_path defaults to '/metrics'
|
|
# scheme defaults to 'http'.
|
|
static_configs:
|
|
- targets: ["localhost:9090"]
|
|
- job_name: "node-exporter"
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['tags_nagios'] %}
|
|
- '{{ host }}:9100'
|
|
{% endfor %}
|
|
- job_name: "cadvisor-exporter"
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['tags_nagios'] %}
|
|
- '{{ host }}:9101'
|
|
{% endfor %}
|