mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 03:17:07 +08:00
Publish
This commit is contained in:
parent
e60601fdcd
commit
0693ed168e
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ groups:
|
||||||
summary: Prometheus job missing (instance {{ $labels.instance }})
|
summary: Prometheus job missing (instance {{ $labels.instance }})
|
||||||
description: "A Prometheus job has disappeared\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
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
|
- alert: PrometheusTargetMissing
|
||||||
expr: 'up == 0 unless on(job) (sum by (job) (up) == 0)'
|
expr: 'up == 0 unless on(job) (sum by (job) (up) == 0)'
|
||||||
for: 0m
|
for: 0m
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue