Griesbacher / histou

Adds templates to Grafana in combination with nagflux
GNU General Public License v2.0
35 stars 16 forks source link

Grafana image rendering function not working #42

Closed MaSc1992 closed 3 years ago

MaSc1992 commented 3 years ago

Hello,

we are using the OMD version and noticed, that the "Direct link rendered image" function in Grafana is not working for the histou template. This function can be accessed from the "Share Panel" for a specific graph. Grafana generates a link like this:

https://omd-servername/omdsite/grafana/render/dashboard-solo/script/histou.js?orgId=1&host=hostname&service=servicename&annotations=true&refresh=30s&from=1607750379265&to=1607779179265&panelId=1&width=1000&height=500&tz=Europe%2FBerlin

After a few seconds, the webserver reports this error:


Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /omdsite/grafana/render/dashboard-solo/script/histou.js.

Reason: Error reading from remote server

For manually created graphs in Grafana it is working.

Thank you in advance and best regards

MaSc1992 commented 3 years ago

It is an OMD related issue with the url-variable in the histou.js file. The local grafana render process uses the grafanas' local http address and port to render the image. Therefor it can not access the histou index.php. Not easy to fix, since the webservice which provides the histou index.php is using authentication.