From 42de016d23e8b6208af3e356ab84e2108fc3e3f4 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sat, 21 Feb 2026 19:39:21 +0100 Subject: [PATCH] Update rules.yml --- _data/rules.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_data/rules.yml b/_data/rules.yml index 7f4da58..1539321 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -19,8 +19,11 @@ groups: severity: warning - name: Prometheus target missing description: A Prometheus target has disappeared. An exporter might be crashed. - query: "up == 0" + query: "up == 0 unless on(job) (sum by (job) (up) == 0)" severity: critical + comments: | + Only fire if at least one target in the job is still up. + If all targets are down, PrometheusJobMissing or PrometheusAllTargetsMissing will fire instead. - name: Prometheus all targets missing description: A Prometheus job does not have living target anymore. query: "sum by (job) (up) == 0"