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

22 lines
448 B
Plaintext
Raw Normal View History

---
{{ ansible_managed | comment }}
2021-02-10 20:42:37 +01:00
2021-04-01 06:00:47 +02:00
{% 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: >-
2021-04-01 06:00:47 +02:00
{{ instance }} Invisible depuis plus de 3 minutes
...