monitoring: fix 'CephMonQuorumLost' alert

Only the 'Running' mons with result value of '1' should be counted.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
This commit is contained in:
Arun Kumar Mohan committed 2021-11-02 17:40:50 +05:30
1 parent 737567937a
commit af44e5c584
1 file changed
+1 -1
@@ -90,7 +90,7 @@ spec:
severity_level: critical
storage_type: ceph
expr: |
count(kube_pod_status_phase{pod=~"rook-ceph-mon-.*", phase=~"Running|running"}) by (namespace) < 2
count(kube_pod_status_phase{pod=~"rook-ceph-mon-.*", phase=~"Running|running"} == 1) by (namespace) < 2
for: 5m
labels:
severity: critical