21 lines
448 B
Django/Jinja
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
|
|
...
|