mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 11:27:00 +08:00
Update rules.yml
This commit is contained in:
parent
39f577a0e5
commit
42de016d23
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue