Patroni has no Leader critical
A leader node (neither primary nor standby) cannot be found inside the cluster {{ $labels.scope }}
>>>
(max by (scope) (
) < 1) and (max by (scope) (
) < 1)
The rule groups metrics by scope and checks that the highest value of patroni_master is less than 1 and the highest value of patroni_standby_leader is also less than 1; in other words, no node reports being a master or a standby leader. When this condition is true for a given scope, the alert fires, indicating the cluster has lost its leader.
Get Alert✕
Download
Copy to Clipboard