Cleanup #36356
closedmgr/dashboard: Check if Grafana dashboards exist
0%
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
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
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.
Updated by Kanika Murarka over 5 years ago
Yes, it can be done through the backend. Thanks
Updated by Kanika Murarka over 5 years ago
- Status changed from New to Fix Under Review
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
Updated by Ricardo Marques over 5 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 148 to Monitoring