This bug was initially created as a copy of Bug #1818772
I am copying this bug because:
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):
Steps to Reproduce:
1. Start a cluster
2. Go to prometheus targets page
3. Scroll to openshift-console-operator/console-operator/0
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
Target is up
Goto https://prometheus-**/targets page, check console /metrics endpoint
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.