This issue is to track the changes needed in the console. Hawkular Metrics has provided an alias path for the endpoint in question. With this change the blocked url '.../hawkular/metrics/metrics/...' can be changed to use the non-blocked url '.../hawkular/metrics/m/...'. Note: the original endpoint is still available, we are just providing the '/m' endpoint to be available to get around the blocker. The console will need to be updated to take advantage of this change, and since this is a backport for 3.5, a check will probably have to be done in the console code to see if it the '/m' endpoint is available in the Hawkular Metrics version which is running.
(In reply to Matt Wringe from comment #1) > Hawkular Metrics has provided an alias path for the endpoint in question. > > With this change the blocked url '.../hawkular/metrics/metrics/...' can be > changed to use the non-blocked url '.../hawkular/metrics/m/...'. Matt, is this change already in a hawkular-metrics image I can test?
Created attachment 1275963 [details] Simple Patch to update console to use the /m endpoint This is a simple patch to updated the console to use the /m endpoint instead of the /metrics one. Note: this doesn't do any check if the version its connecting to has the /m endpoint or not, which may not always be the case.
Matt, how do we recommend we test for the /m endpoint? OPTIONS seems to return 200 OK for any URL, even ones that don't exist. HEAD is a bit slow (1 second response time). GET returns a lot of data. Is there an efficient way to discover if it's there?
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/844a16d41df98e9876fb47b87852190c2f5b43a0 Bug 1447405 - Use Hawkular Metrics /m endpoint Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1447405
https://github.com/openshift/origin-web-console/pull/1531
Created attachment 1285000 [details] pod page
Created attachment 1285001 [details] overview page(AdBlocking is disabled)
Created attachment 1285002 [details] overview page(AdBlocking is enabled)
Please ignore above comment, since I used the wrong version to verify the bug. Will verify this bug again, sorry for that.
I checked this issue on OCP v3.6.95 test env, deploy metrics and installed uBlock Origin on my firefox & chrome.The result is I can see the metrics data on the pod & overview web page while AdBlocking is enabled.
*** Bug 1430888 has been marked as a duplicate of this bug. ***
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/RHEA-2017:1716