ansible/roles/prometheus_federate/templates/prometheus/alert.rules.yml.j2

16 lines
375 B
Django/Jinja

---
{{ ansible_managed | comment }}
groups:
- name: alert.rules
rules:
- alert: FederateInstanceDown
expr: up{job="federate"} == 0
for: 3m
labels:
severity: critical
annotations:
summary: >-
Federate : {{ "{{" }} $labels.instance {{ "}}" }} est invisible
depuis plus de 3 minutes !
...