Skip to content

Commit 138f7a5

Browse files
committed
prom rules: add alert for nodes using runc
relies on a cri-o metric that's emitted when the cluster is using runc Signed-off-by: Peter Hunt <pehunt@redhat.com>
1 parent 5f1b7ad commit 138f7a5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

install/0000_90_machine-config_01_prometheus-rules.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ spec:
1515
rules:
1616
- expr: sum(os_image_url_override)
1717
record: os_image_url_override:sum
18+
- name: runc-deprecated
19+
rules:
20+
- alert: RuncDeprecated
21+
expr: |
22+
count(container_runtime_crio_default_runtime{runtime="runc"}) > 0
23+
for: 10m
24+
labels:
25+
namespace: openshift-machine-config-operator
26+
severity: info
27+
annotations:
28+
summary: "This cluster is using the deprecated runc container runtime"
29+
description: >-
30+
The runc OCI runtime has been deprecated and support will be removed in a future release. Migrate to crun before upgrading to a future OpenShift release.
31+
See https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/machine_configuration/machine-configs-custom#config-container-runtime_machine-configs-custom
32+
for migration steps.
33+
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/machine-config-operator/RuncDeprecated.md
1834
- name: mcc-drain-error
1935
rules:
2036
- alert: MCCDrainError

0 commit comments

Comments
 (0)