From f31aef9b202d078b81cb655f288d89599702b97c Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 10 Jul 2022 20:59:03 +0200 Subject: [PATCH] Add alertmanager rules --- hosts/monitoring/alertmanager-rules.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hosts/monitoring/alertmanager-rules.yml diff --git a/hosts/monitoring/alertmanager-rules.yml b/hosts/monitoring/alertmanager-rules.yml new file mode 100644 index 0000000..45556c7 --- /dev/null +++ b/hosts/monitoring/alertmanager-rules.yml @@ -0,0 +1,11 @@ +groups: +- name: alert.rules + rules: + - alert: InstanceDown + expr: up{job="node-exporter"} == 0 + for: 5m + labels: + severity: critical + annotations: + summary: "Endpoint {{ $labels.instance }} down" + description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."