mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
Added MongodbReplicaMemberHealth to check health of replica members health which is added in new metrics
This commit is contained in:
parent
8dcd4667ca
commit
fe2e037525
1 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,15 @@ groups:
|
||||||
summary: MongoDB Down (instance {{ $labels.instance }})
|
summary: MongoDB Down (instance {{ $labels.instance }})
|
||||||
description: "MongoDB instance is down\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "MongoDB instance is down\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
|
- alert: MongodbReplicaMemberHealth
|
||||||
|
expr: 'mongodb_rs_members_health == 0'
|
||||||
|
for: 0m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
annotations:
|
||||||
|
summary: MongoDB replica member not healthy {{ $labels.member_idx }}
|
||||||
|
description: "MongoDB replica member not healthy\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: MongodbReplicationLag
|
- alert: MongodbReplicationLag
|
||||||
expr: 'mongodb_rs_members_optimeDate{member_state="PRIMARY"} - on (set) group_right mongodb_rs_members_optimeDate{member_state="SECONDARY"} > 10'
|
expr: 'mongodb_rs_members_optimeDate{member_state="PRIMARY"} - on (set) group_right mongodb_rs_members_optimeDate{member_state="SECONDARY"} > 10'
|
||||||
for: 0m
|
for: 0m
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue