Project

General

Profile

Cleanup #48384

Updated by Ernesto Puerta over 3 years ago

There's this option @GRAFANA_API_URL@ which is used for: 
 * Pushing Grafana dashboards to Grafana. This is legacy/non-required functionality, as now Grafana Dashboards come embedded within the containerized Grafana 
 * Allowing the front-end to detect whether Grafana is up and a specific Grafana Dashboard exists and provide some specific/fancy error messages (info boxes) 

 Given the second behaviour is a little convoluted (for the front-end to guess whether it can ping the same URL an iframe is going to import, a REST API is triggered to the backend and returned to the frontend) and partially incorrect (the backend could reach out Grafana, while the front-end couldn't). An alternative would be to directly interact and guess Grafana status from the front-end via @iframe@ (either by @onload()@ or a similar approach). 

 !Screenshot%20from%202020-11-26%2019-52-14.png! !Screenshot from 2020-11-26 19-52-14.png! 

Back