Files
Thies Mueller a49ac0c51a commit
2026-06-06 00:03:38 +02:00

56 lines
1.2 KiB
Django/Jinja

---
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: cert-checker
scrape_interval: 5s
static_configs:
- targets:
- cert-checker:8080
- job_name: "nodeexporter"
static_configs:
- targets: ["node-exporter:9100"]
- job_name: "cadvisor"
static_configs:
- targets: ["cadvisor:8080"]
{% for host in groups['docker']%}
{% if inventory_hostname != host %}
- targets: ["{{ host }}{{hostsuffix}}:9999"]
{% endif %}
{% endfor %}
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node_exporter"
static_configs:
{% for host in groups['locations'] %}
{% if inventory_hostname != host and host not in groups['windows'] %}
- targets: ["{{ host }}{{hostsuffix}}:9100"]
{% endif %}
{% endfor %}
- job_name: "docker"
static_configs:
{% for host in groups['docker'] %}
{% if inventory_hostname != host %}
- targets: ["{{ host }}{{hostsuffix}}:9323"]
{% endif %}
{% endfor %}
rule_files:
- rules.yml
alerting:
alertmanagers:
- static_configs:
- targets:
# Alertmanager's default port is 9093
- localhost:9093