From ba02997ebdef5644ea19c6c46437d605a2b5a89e Mon Sep 17 00:00:00 2001 From: Arun Kumar Mohan Date: Thu, 5 Dec 2024 11:10:44 +0530 Subject: [PATCH] Fixed an indentation issue in 'prometheus-ocs-rules.yaml' file Signed-off-by: Arun Kumar Mohan --- metrics/deploy/prometheus-ocs-rules.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/metrics/deploy/prometheus-ocs-rules.yaml b/metrics/deploy/prometheus-ocs-rules.yaml index 8f3b2fdb3d..4e42e420ce 100644 --- a/metrics/deploy/prometheus-ocs-rules.yaml +++ b/metrics/deploy/prometheus-ocs-rules.yaml @@ -122,12 +122,12 @@ spec: runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/openshift-container-storage-operator/OdfPoolMirroringImageHealth.md severity_level: warning storage_type: ceph - expr: | - (ocs_pool_mirroring_image_health{job="ocs-metrics-exporter"} * on (namespace, managedBy, rados_namespace) group_left() (max by(namespace, managedBy, rados_namespace) (ocs_pool_mirroring_status{job="ocs-metrics-exporter"}))) == 2 - for: 1m - labels: - mirroring_image_status: warning - severity: warning + expr: | + (ocs_pool_mirroring_image_health{job="ocs-metrics-exporter"} * on (namespace, managedBy, rados_namespace) group_left() (max by(namespace, managedBy, rados_namespace) (ocs_pool_mirroring_status{job="ocs-metrics-exporter"}))) == 2 + for: 1m + labels: + mirroring_image_status: warning + severity: warning - alert: OdfPoolMirroringImageHealth annotations: description: Mirroring image(s) (PV) in the pool {{ $labels.name }} and rados namespace {{ $labels.rados_namespace }} are in