Bug 1780170 - Console operator /metrics endpoint doesn't contain console_url metric [openshift-4.2]
Summary: Console operator /metrics endpoint doesn't contain console_url metric [opensh...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.2.z
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.2.z
Assignee: bpeterse
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On: 1764313 1780180
Blocks: 1764316 1768684 1779879 1781475
TreeView+ depends on / blocked
 
Reported: 2019-12-05 14:29 UTC by bpeterse
Modified: 2019-12-20 00:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1764313
Environment:
Last Closed: 2019-12-20 00:46:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4181 0 None None None 2019-12-20 00:46:58 UTC

Comment 3 Yanping Zhang 2019-12-09 06:09:21 UTC
Payload 4.2.10
Checked on ocp 4.2 env with above version, now there is console_url in metrics, and filtering on prometheus ui with "console_url" will have output.
# token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
# oc get ep -n openshift-console-operator
NAME      ENDPOINTS          AGE
metrics   10.130.0.22:8443   3h18m
# oc -n openshift-console-operator exec console-operator-6f6488cf4d-h88n9 -- curl -k -H "Authorization: Bearer $token" https://10.130.0.22:8443/metrics |grep console_url
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP console_url URL of the console exposed on the cluster
# TYPE console_url gauge
console_url{url=""} 0
console_url{url="https://console-openshift-console.apps.qeci-1109.qe.gcp.devcluster.openshift.com"} 1
100 58337    0 58337    0     0   388k      0 --:--:-- --:--:-- --:--:--  390k

The bug is fixed, so move it to "Verified"

Comment 5 errata-xmlrpc 2019-12-20 00:46:48 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, 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-2019:4181


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