Skip to content

Commit 73dc865

Browse files
committed
Replace abs() == 1 with != 0
1 parent 6780b9d commit 73dc865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install/0000_90_cluster-version-operator_02_prometheusrule-TechPreviewNoUpgrade.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
description: The conditional update risk {{ "{{ $labels.risk }}" }} might apply to the cluster because of {{ "{{ $labels.reason }}" }}, and the cluster update to a version exposed to the risk is not recommended. For more information refer to 'oc adm upgrade'.
2121
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/OpenShiftUpdateRiskMightApply.md
2222
expr: |
23-
max by (namespace, risk, reason) (abs(last_over_time(cluster_version_risk_conditions{job="cluster-version-operator", condition="Applies"}[5m])) == 1)
23+
max by (namespace, risk, reason) (last_over_time(cluster_version_risk_conditions{job="cluster-version-operator", condition="Applies"}[5m]) != 0)
2424
for: 10m
2525
labels:
2626
severity: warning

0 commit comments

Comments
 (0)