mgr/dashboard: Check if Grafana dashboards exist
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.
#2 Updated by Kanika Murarka 4 months ago
This bug seems to require proxy, as Grafana doesnt allow to enable CORS explicitly1.
#3 Updated by Ricardo Marques 4 months 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.