Skip to content

Commit

Permalink
Bug 1970354: Handle empty ceph_version in ceph_mon_metadata to avoid …
Browse files Browse the repository at this point in the history
…raising misleading alert

Signed-off-by: Gowtham Shanmugasundaram <gshanmug@redhat.com>
  • Loading branch information
GowthamShanmugam committed Oct 6, 2021
1 parent 082c58a commit a5fa42d
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 a5fa42d

Please sign in to comment.