Merge pull request #8985 from aruniiird/fix-CephMgrIsAbsent-n-CephMgrIsMissingReplicas-queries

ceph: fixing the queries for alerts 'CephMgrIsAbsent' and 'CephMgrIsMissingReplicas'
This commit is contained in:
Sébastien Han authored and GitHub committed 2021-10-15 10:22:42 +02:00
commit ecd75a2a46
1 file changed
+2 -2
@@ -42,7 +42,7 @@ spec:
severity_level: critical
storage_type: ceph
expr: |
up{job="rook-ceph-mgr"} == 0
label_replace((up{job="rook-ceph-mgr"} == 0 or absent(up{job="rook-ceph-mgr"})), "namespace", "openshift-storage", "", "")
for: 5m
labels:
severity: critical
@@ -53,7 +53,7 @@ spec:
severity_level: warning
storage_type: ceph
expr: |
sum(up{job="rook-ceph-mgr"}) by (namespace) < 1
sum(kube_deployment_spec_replicas{deployment=~"rook-ceph-mgr-.*"}) by (namespace) < 1
for: 5m
labels:
severity: warning