Mikesch-mp / icingaweb2-module-grafana

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
https://icinga.com/community/
GNU General Public License v2.0
241 stars 95 forks source link

Grafana Panel URL changed #249

Closed mitch-geht-ab closed 1 year ago

mitch-geht-ab commented 4 years ago

Hello everybody,

after upgrading Graphana (6.7.2 >> 7.0.1) on my Deb10 system I noticed that the variable for the panelID selection changed from former:

https://\<system>/grafana/d/1YrWroWZk/icinga2?var-hostname=xxxxxx&var-service=yyyy&var-command=snmp-netinterface&from=now-6h&to=now&orgId=1&panelId=5&fullscreen

to:

https://\<system>/grafana/d/1YrWroWZk/icinga2?var-hostname=xxxxxx&var-service=yyyy&var-command=snmp-netinterface&from=now-6h&to=now&orgId=1&viewPanel=5&fullscreen

The problem is, icingaweb2 is linking to the panelid variable in the embedded picture of the graph. To view the graph you have to change panelid= to viewpanel=.

Debian 10.4 grafana 7.0.1 icinga2-bin 2.11.3-1.buster icingaweb2 2.7.3-1.buster

BR mitch

bunghi commented 4 years ago

It is not working to me.. This is how I see the graph in icingaweb2 after upgrade:

image

sadai-gh commented 4 years ago

Hello everybody,

after upgrading Graphana (6.7.2 >> 7.0.1) on my Deb10 system I noticed that the variable for the panelID selection changed from former:

https:///grafana/d/1YrWroWZk/icinga2?var-hostname=xxxxxx&var-service=yyyy&var-command=snmp-netinterface&from=now-6h&to=now&orgId=1&panelId=5&fullscreen

to:

https:///grafana/d/1YrWroWZk/icinga2?var-hostname=xxxxxx&var-service=yyyy&var-command=snmp-netinterface&from=now-6h&to=now&orgId=1&viewPanel=5&fullscreen

The problem is, icingaweb2 is linking to the panelid variable in the embedded picture of the graph. To view the graph you have to change panelid= to viewpanel=.

Debian 10.4 grafana 7.0.1 icinga2-bin 2.11.3-1.buster icingaweb2 2.7.3-1.buster

BR mitch

I have exactly the same problem but can only workarround this for additional graphs but not the default dashboard by making use of the 'Custom Variables' setting e.g. '&viewPanel=1' .

I am looking forward to an official fix.

Mikesch-mp commented 4 years ago

I updated my installation of Grafana to 7.0.3 and i dont have this problem. Does this happen if you set more then one graph for a service?

mitch-geht-ab commented 4 years ago

Hi, no, it's only one graph for the service. Here is a screenshot story:

IcingaWeb2 Screen for ping service: screen1

with the Link for grafana: screen2

when I click the link, I see all graphs in the dashboard: screen3

... but it should only be one, the graph/panel for the ping command. It should look like this, after I changed panelid= to viewpanel= by hand: screen4

Mikesch-mp commented 4 years ago

Ahh now i got it, will check that soon(tm)

abaumgaertner commented 3 years ago

since PhaontomJS was discontinued in 2018 and removed from Grafana 7 - see: https://grafana.com/blog/2020/05/07/grafana-7.0-preview-new-image-renderer-plugin-to-replace-phantomjs/ is this issue related to the new rendering plugin?