Description of problem:
CMO ships 2 recording rules (instance:etcd_object_counts:sum and cluster:usage:resources:sum) which use the etcd_object_counts metric which is deprecated since Kube v1.21 .
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Check the definition of instance:etcd_object_counts:sum and cluster:usage:resources:sum
They use etcd_object_counts.
They don't use deprecated metrics.
etcd_object_counts is replaced by apiserver_storage_objects which has the same labels and semantics.
tested with 4.9.0-0.nightly-2021-08-26-164418, etcd_object_counts is replaced by apiserver_storage_objects
# oc -n openshift-monitoring get cm prometheus-k8s-rulefiles-0 -oyaml | grep -E "instance:etcd_object_counts:sum|cluster:usage:resources:sum" -C1
- expr: sum by (instance) (apiserver_storage_objects)
- expr: topk(500, max by(resource) (apiserver_storage_objects))
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.