Project

General

Profile

Actions

Cleanup #36356

closed

mgr/dashboard: Check if Grafana dashboards exist

Added by Ricardo Marques over 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Low
Category:
Monitoring
Target version:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

If grafana is configured by running `ceph dashboard set-grafana-api-url <grafana-server-url>`, but a required dashboard is not available, user will see the following page.

It would be useful if Ceph Dashboard checks if the required dashboard exists beforehand, and display a more useful message including the name of the missing dashboard.


Files

Actions #1

Updated by Ricardo Marques over 5 years ago

  • Priority changed from Normal to Low
Actions #2

Updated by Kanika Murarka over 5 years ago

This bug seems to require proxy, as Grafana doesnt allow to enable CORS explicitly1.

[1] https://community.grafana.com/t/how-to-allow-access-control-allow-origin-for-all-the-apis/2045

Actions #3

Updated by Ricardo Marques over 5 years ago

@Kanika Murarka I was expecting that doing an HTTP get to the grafana dashboard URL before displaying that URL in the iframe would be enough to know if that dashboard is available.

This validation must be done by the backend, in a dedicated endpoint that checks if a certain dashboard is available.

Actions #4

Updated by Kanika Murarka over 5 years ago

Yes, it can be done through the backend. Thanks

Actions #5

Updated by Kanika Murarka over 5 years ago

  • Status changed from New to Fix Under Review
Actions #6

Updated by Lenz Grimmer over 5 years ago

  • Subject changed from Check if grafana dashboard exists to mgr/dashboard: Check if Grafana dashboards exist
  • Target version set to v14.0.0
  • Pull request ID set to 25154
Actions #7

Updated by Ricardo Marques over 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 148 to Monitoring
Actions

Also available in: Atom PDF