Bug 2074084 - CMO metrics not visible in the OCP webconsole UI
Summary: CMO metrics not visible in the OCP webconsole UI
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.11
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Haoyu Sun
QA Contact: Junqi Zhao
Depends On:
TreeView+ depends on / blocked
Reported: 2022-04-11 13:46 UTC by Tomas Remes
Modified: 2022-08-10 11:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-08-10 11:05:57 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 1634 0 None open Bug 2074084: CMO metrics not visible in the OCP webconsole UI 2022-04-11 17:05:46 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:06:44 UTC

Description Tomas Remes 2022-04-11 13:46:52 UTC
Description of problem:

I guess that the metrics ("cluster_monitoring_operator_last_reconciliation_successful" and "cluster_monitoring_operator_reconcile_attempts_total") registered by the CMO should be visible in the cluster metrics in the OCP webconsole. This is not true at the moment. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 3 hongyan li 2022-04-14 07:32:40 UTC
Tested with PR

Comment 8 Junqi Zhao 2022-04-18 08:05:09 UTC
fix is in 4.11.0-0.nightly-2022-04-16-163450,
# token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
# oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift-monitoring.svc:9091/api/v1/label/__name__/values' | jq | grep cluster_monitoring_operator

# oc -n openshift-monitoring get service cluster-monitoring-operator -o jsonpath="{.spec.selector}"

# oc -n openshift-monitoring get servicemonitor cluster-monitoring-operator -o jsonpath="{.spec.selector.matchLabels}"

Comment 12 errata-xmlrpc 2022-08-10 11:05:57 UTC
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 (Important: OpenShift Container Platform 4.11.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.


Note You need to log in before you can comment on or make changes to this bug.