Skip to content

Commit e009cca

Browse files
Merge pull request #5315 from openshift-cherrypick-robot/cherry-pick-5306-to-release-4.18
[release-4.18] OCPBUGS-62350: Add mcd_local_unsupported_packages recording rule
2 parents b1595be + 125e961 commit e009cca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/0000_90_machine-config_01_prometheus-rules.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,9 @@ spec:
199199
description: >-
200200
Could not find config {{ $labels.mc }} in-cluster, this likely indicates the MachineConfigs in-cluster has changed during the install process.
201201
If you are seeing this when installing the cluster, please compare the in-cluster rendered machineconfigs to /etc/mcs-machine-config-content.json
202+
- name: telemetry.rules
203+
rules:
204+
- expr: count(mcd_local_unsupported_packages > 0)
205+
record: cluster:mcd_nodes_with_unsupported_packages:count
206+
- expr: sum(mcd_local_unsupported_packages)
207+
record: cluster:mcd_total_unsupported_packages:sum

0 commit comments

Comments
 (0)