Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

After upgrading to Grafana 11.3.0 passing variables as CONSTANTS does not work #344

Open
chrnie opened this issue Oct 31, 2024 · 7 comments

Comments

@chrnie
Copy link

chrnie commented Oct 31, 2024

What happened?

Like described in this issue for grafana Variables are not passed to the dashboards.
grafana/grafana#95466

Possible Solution

Change CONSTANT Variables to CUSTOM Variables.

Steps to Reproduce (for bugs)

icingaweb + icingadb-web
grafana module with grafana iframe integration
grafana 11.3.0

Your Environment

Grafana 11.3.0

Icinga Web 2 Version 2.12.1
PHP Version 8.1.2-1ubuntu2.19

Loaded Libraries
icinga/icinga-php-library 0.14.1
icinga/icinga-php-thirdparty 0.12.1

Loaded Modules
grafana 2.0.3 Configure
icingadb 1.1.3 Configure
incubator 0.22.0 Configure

@tomabg
Copy link

tomabg commented Nov 27, 2024

problem still exist with grafana=11.3.1

@chrnie
Copy link
Author

chrnie commented Nov 28, 2024

Hi there's a Netways fork where these problems are fixed.
https://github.com/NETWAYS/icingaweb2-module-grafana

@ih8ms
Copy link

ih8ms commented Dec 3, 2024

For those that experience the same issue: for me, replacing the JSON code in Grafana didn't work after switching to the Netways fork. I had to entirely remove and re-deploy the dashboard to get it to run.

@tomabg
Copy link

tomabg commented Dec 10, 2024

problem still exist with grafana=11.4.0

@manny4566
Copy link

manny4566 commented Dec 17, 2024

Hi there's a Netways fork where these problems are fixed. https://github.com/NETWAYS/icingaweb2-module-grafana

I have still the same problem with this fork or what need to be done, that it works again ? Thanks

@manny4566
Copy link

Hi,
i think i'm getting closer to the problem.

The problem is the seems to be the panal id. With 11.3.0 the variable for the panal id changed:

v11.2.2
https://XXX/d/icinga2/icinga2-with-influxdb?var-hostname=XXX&var-service=Load%201h&var-command=load&from=now-3h&to=now&orgId=1&viewPanel=3

Here it is &viewPanel=3

v11.3.0
https://XXX/d/icinga2/icinga2-with-influxdb?var-hostname=XXX&var-service=Load%201h&var-command=load&from=now-3h&to=now&orgId=1&viewPanel=panel-3&timezone=browser&var-disk=$__all&var-threadcount=$__all

Here it is &viewPanel=panel-3.

Futhermore automatically "&timezone=browser&var-disk=$__all&var-threadcount=$__all" is added for variable without a definition ($__all).
In 11.2.2 they are not added automatically to the URL

##################
As you can see, it is an Icinga2 implementation. The url is build by Icinga2, concretely the Icinga2 grafana plugin. I think there is a discrepancy between the Icinga2 module and the Grafana panal id variable, which has changed in 11.3.0.
Possibly also in interaction with the image renderer plugin.
I use this environment:

Icinga2 2.14.3
Grafana Plugin v2.0.3 - https://github.com/Mikesch-mp/icingaweb2-module-grafana
same Problem with v3.0.0 - https://github.com/NETWAYS/icingaweb2-module-grafana

Grafana 11.3.2 ( But also with v11.3.0 ). With v11.2.2 it works.
grafana-image-renderer v3.11.6

I hope this will help.
I will also add this comment to other Github tickets.

@gbin2265
Copy link

Hello,

Could this be a bug in Grafana?

See Case grafana/grafana#96818

I also opened a case, but no response from Grafana.
grafana/grafana#97977

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants