Add prometheus and grafana for monitoring
This commit is contained in:
10
monitoring/prometheus.yml.j2
Normal file
10
monitoring/prometheus.yml.j2
Normal 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 %}
|
||||
Reference in New Issue
Block a user