ansible/roles/prometheus_federate/templates/prometheus/alert.rules.yml.j2
Jeltz eeaf0f8486
All checks were successful
continuous-integration/drone/push Build is passing
Fix syntax errors
2021-04-01 06:02:40 +02:00

21 lines
448 B
Django/Jinja

---
{{ ansible_managed | comment }}
{% macro raw(string) -%}
{{ "{{" }} {{ string }} {{ "}}" }}
{%- endmacro %}
{% set instance = "[{{ $labels.instance }}]" %}
groups:
- name: alert.rules
rules:
- alert: FederateInstanceDown
expr: up{job="federate"} == 0
for: 3m
labels:
severity: critical
annotations:
summary: >-
{{ instance }} Invisible depuis plus de 3 minutes
...