Error from Grafana git-hub app integration with DX NetOps Performance Management

book

Article ID: 208742

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

We receive this error from Grafana when attempting to communicate with the DX NetOps Performance Management Performance Center server.

Access to XMLHttpRequest at 'https://<PC_HostName>:8182/pc/odata/api/getSchemaVersion' from origin 'http://<HostName>:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The Git-Hub based app is installed and configured correctly per the instructions found on the OpenAPI-Grafana GitHub page.

Cause

Due to environmental limitations a Custom Header needs to be added to Performance Center.

Environment

All supported DX NetOps Performance Management releases

Resolution

To set up the Custom Header complete these steps:

  1. On PC log in and run the SsoConfig tool command from the (default path) /opt/CA/PerformanceCenter directory.
  2. Select option 1. DX NetOps
  3. Select option 3. Performance Center
  4. Select option 2. Local Override
  5. Select option 21. Custom HTTP headers to be added to our responses:
  6. Select to u to update to a new value.
  7. Set the value to:
    • Access-Control-Allow-Origin: *
  8. Once set exit the SsoConfig tool.

No service restarts should be needed.

The change should take just a minute or two to propagate through Performance Center.

A few minutes after the change test the Grafana connection to Performance Center again.