From 48d2c9425906b9b337790a74d14849dbbe21f737 Mon Sep 17 00:00:00 2001 From: pz2891 Date: Wed, 8 Sep 2021 12:31:03 +0200 Subject: [PATCH] Alerts for instance down only when it's servers job that failed --- roles/prometheus/templates/server.rules.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/templates/server.rules.yml.j2 b/roles/prometheus/templates/server.rules.yml.j2 index 5277fdf..6624ef2 100644 --- a/roles/prometheus/templates/server.rules.yml.j2 +++ b/roles/prometheus/templates/server.rules.yml.j2 @@ -11,7 +11,7 @@ groups: rules: - alert: InstanceDown - expr: up{instance!~".*.borne.auro.re$"} == 0 + expr: up{instance!~".*.borne.auro.re$", job="servers"} == 0 for: 3m labels: severity: critical