From f80435cb314b67a1740861e41f3da0955ff2e14e Mon Sep 17 00:00:00 2001 From: Jeltz Date: Fri, 2 Apr 2021 21:54:38 +0200 Subject: [PATCH] Differentiate alerts for servers and Wi-Fi APs --- roles/prometheus/templates/alert.rules.yml.j2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/prometheus/templates/alert.rules.yml.j2 b/roles/prometheus/templates/alert.rules.yml.j2 index e6f10ce..97d5e22 100644 --- a/roles/prometheus/templates/alert.rules.yml.j2 +++ b/roles/prometheus/templates/alert.rules.yml.j2 @@ -10,7 +10,7 @@ groups: rules: - alert: InstanceDown - expr: up == 0 + expr: up{instance!~".*.borne.auro.re$"} == 0 for: 3m labels: severity: critical @@ -18,6 +18,15 @@ groups: summary: >- Invisible depuis plus de 3 minutes + - alert: AccessPointDown + expr: up{instance=~".*.borne.auro.re$"} == 0 + for: 3m + labels: + severity: warning + annotations: + summary: >- + Invisible depuis plus de 3 minutes + - alert: OutOfMemory expr: >- (