Skip to content

Commit

Permalink
Merge pull request #92 from GowthamShanmugam/1970354
Browse files Browse the repository at this point in the history
Handle empty ceph_version in ceph_mon_metadata to avoid raising misleading alert
  • Loading branch information
umangachapagain committed Feb 2, 2022
2 parents c77ec28 + a5fa42d commit 7ddbd7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alerts/state.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{
alert: 'CephMonVersionMismatch',
expr: |||
count(count(ceph_mon_metadata{%(cephExporterSelector)s}) by (ceph_version)) > 1
count(count(ceph_mon_metadata{%(cephExporterSelector)s, ceph_version != ""}) by (ceph_version)) > 1
||| % $._config,
'for': $._config.clusterVersionAlertTime,
labels: {
Expand Down
2 changes: 1 addition & 1 deletion extras/manifests/prometheus-ceph-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ spec:
severity_level: warning
storage_type: ceph
expr: |
count(count(ceph_mon_metadata{job="rook-ceph-mgr"}) by (ceph_version)) > 1
count(count(ceph_mon_metadata{job="rook-ceph-mgr", ceph_version != ""}) by (ceph_version)) > 1
for: 10m
labels:
severity: warning
Expand Down

0 comments on commit 7ddbd7a

Please sign in to comment.