Closed mdicss closed 1 year ago
I also use Grafana 7.x and had the same problem. So I also changed these two lines and it works. When you change the code on github, then you should consider an option for users with older Grafana versions (< 7). Maybe a switch in the config? Otherwise users with older versions will have the same problem.
Seems v1.4.2 solved this problem!? Thx Carsten!!! In my opinion you could close this issue
Grafana 7 breaks the grafana integration in icinga web 2, see https://community.icinga.com/t/fyi-grafana-upgrade-v6-to-v7-breaks-grafana-integration-with-icingaweb2/4263/10 I had to use chrome standalone instead of the chrome packaged in plugin-linux-x64-glibc and add GF_RENDERER_PLUGIN_IGNORE_HTTPS_ERRORS=true to /etc/defaults/grafana-server as described above. I use centos. Now, the graphs are displayed correctly in icinga web 2 but I had the problem, that the link from the graph to grafana didn’t work. It made a redirect to localhost:3000 and ended in a error message with ’ PR_END_OF_FILE_ERROR’, probalbly a security/certificate problem. Then I patched /usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Grapher.php
Without &fullscreen and with viewPanel= instead of panelId= it seems to work now. Can you verify this and include a change in a next version of the grafana module?