Description of problem: /metrics endpoint cannot be scraped by prometheus due to incorrect serverName in TLS cert. Version-Release number of selected component (if applicable): 4.5 How reproducible: often Steps to Reproduce: 1. Start a cluster 2. Go to prometheus targets page 3. Scroll to openshift-console-operator/console-operator/0 Actual results: Target is down due to: Get https://10.128.0.32:8443/metrics: x509: certificate is valid for localhost, not metrics.openshift-console-operator.svc Expected results: Target is up Additional info:
Closing this one after trying to reproduce with Pawel's assistance. The ServiceMonitor responsible for the /metrics endpoint to be scraped was validated and looks without any issue: https://github.com/openshift/console-operator/blob/master/manifests/0000_90_console-operator_02_servicemonitor.yaml We agreed to close the bug since it's most probably a flake.
This issue should be fixed by the latest go deps bump. Putting on ON_QA
goto https://prometheus-k8s-openshift-monitoring.apps.qe-groupd-0519.qe.devcluster.openshift.com/targets page and check openshift-console-operator/console-operator/0 part. no "x509: certificate is valid for localhost, not metrics.openshift-console-operator.svc errors" found 4.5.0-0.nightly-2020-05-18-225907
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, 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/RHBA-2020:2409