Skip to content

Commit 129bc80

Browse files
committed
Add alert/RiskApplies
1 parent 636802e commit 129bc80

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

install/0000_90_cluster-version-operator_02_servicemonitor.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ spec:
8383
for: 60m
8484
labels:
8585
severity: warning
86+
- alert: RiskApplies
87+
annotations:
88+
summary: The cluster has been exposed to the conditional update risk for 10 minutes.
89+
description: The conditional update risk {{ "{{ $labels.risk }}" }} applies to the cluster, and the cluster update to a version exposed to the risk is not recommended. For more information refer to 'oc adm upgrade'.
90+
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/RiskApplies.md
91+
expr: |
92+
max by (namespace, name, risk) (cluster_version_risk_conditions{job="cluster-version-operator", name="version", condition="Applies"} == 1)
93+
for: 10m
94+
labels:
95+
severity: warning
8696
- name: cluster-operators
8797
rules:
8898
- alert: ClusterNotUpgradeable

0 commit comments

Comments
 (0)