ansible/roles/prometheus/templates/prometheus.yml.j2

16 lines
397 B
Django/Jinja

---
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
scrape_configs:
- job_name: node
scheme: https
tls_config:
ca_file: "{{ tls_certs }}/ca.crt"
key_file: "{{ tls_private }}/{{ inventory_hostname }}.key"
cert_file: "{{ tls_certs }}/{{ inventory_hostname }}.crt"
file_sd_configs:
- files:
- /srv/prometheus/node.d/*.json