MongoDB replication lag critical
Mongodb replication lag is more than 10s
>>>
(
{member_state="PRIMARY"} - on (set) group_right
{member_state="SECONDARY"}) / 1000 > 10
The rule computes the time difference (in seconds) between the optimeDate of the PRIMARY member and each SECONDARY member of a MongoDB replica set—using the subtraction, on (set) group_right join, and division by 1000—and triggers the alert when any secondary’s lag exceeds 10 seconds.
Get Alert✕
Download
Copy to Clipboard