Description of problem: To reduce the overall memory consumption of Prometheus, we can drop unused cAdvisor metrics with high cardinality. Version-Release number of selected component (if applicable): 4.9 Additional info: This can be verified by a before and after query: count({metrics_path="/metrics/cadvisor"})
tested with 4.9.0-0.nightly-2021-08-29-010334 with the fix, the count of the cadvisor metrics is less than that without the fix count({metrics_path="/metrics/cadvisor"}) {} 46166 without the fix count({metrics_path="/metrics/cadvisor"}) {} 56388
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. https://access.redhat.com/errata/RHSA-2021:3759