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 almost 4 years ago
This bug seems to require proxy, as Grafana doesnt allow to enable CORS explicitly1.
#3 Updated by Ricardo Marques almost 4 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.