Skip to content

Commit

Permalink
Merge pull request #8901 from aruniiird/add-namespace-to-ceph-queries
Browse files Browse the repository at this point in the history
ceph: adding 'namespace' field to the needed ceph queries
  • Loading branch information
leseb committed Oct 1, 2021
2 parents 8468b6f + 8950e78 commit 3c93eb3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -53,7 +53,7 @@ spec:
severity_level: warning
storage_type: ceph
expr: |
sum(up{job="rook-ceph-mgr"}) < 1
sum(up{job="rook-ceph-mgr"}) by (namespace) < 1
for: 5m
labels:
severity: warning
Expand All @@ -66,7 +66,7 @@ spec:
severity_level: warning
storage_type: ceph
expr: |
sum(ceph_mds_metadata{job="rook-ceph-mgr"} == 1) < 2
sum(ceph_mds_metadata{job="rook-ceph-mgr"} == 1) by (namespace) < 2
for: 5m
labels:
severity: warning
Expand All @@ -79,7 +79,7 @@ spec:
severity_level: error
storage_type: ceph
expr: |
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) <= (floor(count(ceph_mon_metadata{job="rook-ceph-mgr"}) / 2) + 1)
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) by (namespace) <= (floor(count(ceph_mon_metadata{job="rook-ceph-mgr"}) by (namespace) / 2) + 1)
for: 15m
labels:
severity: critical
Expand Down Expand Up @@ -252,7 +252,7 @@ spec:
severity_level: warning
storage_type: ceph
expr: |
count(count(ceph_osd_metadata{job="rook-ceph-mgr"}) by (ceph_version)) > 1
count(count(ceph_osd_metadata{job="rook-ceph-mgr"}) by (ceph_version, namespace)) by (ceph_version, namespace) > 1
for: 10m
labels:
severity: warning
Expand Down

0 comments on commit 3c93eb3

Please sign in to comment.