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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.