After metrics moved to other node, the data are not visible in Web Console

Solution Verified - Updated -

Issue

After moving the metrics's pod to the new nodes, the metrics are not working. The metrics url is accessible, but no actual data are visible in OpenShift's Web Console.

The browser console shows error:

XMLHttpRequest cannot load https://metrics.example.com/hawkular/metrics. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://metrics.example.com' is therefore not allowed access.

Environment

OpenShift Container Platform 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content