This commit is contained in:
samber 2026-02-21 18:40:35 +00:00
parent e60601fdcd
commit 0693ed168e

View file

@ -14,6 +14,8 @@ groups:
summary: Prometheus job missing (instance {{ $labels.instance }})
description: "A Prometheus job has disappeared\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
# Only fire if at least one target in the job is still up.
# If all targets are down, PrometheusJobMissing or PrometheusAllTargetsMissing will fire instead.
- alert: PrometheusTargetMissing
expr: 'up == 0 unless on(job) (sum by (job) (up) == 0)'
for: 0m