Skip to content

Commit 9138c46

Browse files
committed
Add alert/RiskApplies
The alert is defined in a new `PrometheusRule/cluster-version-operator-tech-preview` which is installed only on a TechPreview cluster.
1 parent cae24c3 commit 9138c46

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: PrometheusRule
3+
metadata:
4+
labels:
5+
k8s-app: cluster-version-operator
6+
name: cluster-version-operator-tech-preview
7+
namespace: openshift-cluster-version
8+
annotations:
9+
kubernetes.io/description: Alerting rules for when cluster-version operator metrics call for administrator attention.
10+
exclude.release.openshift.io/internal-openshift-hosted: "true"
11+
include.release.openshift.io/self-managed-high-availability: "true"
12+
release.openshift.io/feature-set: TechPreviewNoUpgrade
13+
spec:
14+
groups:
15+
- name: cluster-version-tech-preview
16+
rules:
17+
- alert: RiskApplies
18+
annotations:
19+
summary: The cluster has been exposed to the conditional update risk for 10 minutes.
20+
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'.
21+
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/RiskApplies.md
22+
expr: |
23+
max by (namespace, name, risk) (cluster_version_risk_conditions{job="cluster-version-operator", name="version", condition="Applies"} == 1)
24+
for: 10m
25+
labels:
26+
severity: warning

0 commit comments

Comments
 (0)