Add prometheus and grafana for monitoring

This commit is contained in:
2026-03-13 18:10:28 +00:00
parent 557571c9fd
commit 2c380b511c
9 changed files with 234 additions and 22 deletions

View File

@@ -0,0 +1,10 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: node
static_configs:
- targets:
{% for host in groups['monitored'] %}
- "{{ hostvars[host].ansible_host }}:9100"
{% endfor %}