NETWAYS / NETWAYS/icingaweb2-module-grafana
[Bug]: Rendering of a Grafana Dashboard run into a timeout
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 39
- Forks
- 10
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Please try to fill out as much of the information below as you can. Thank you!
- Yes, I've searched similar issues on GitHub and didn't find any.
Which version contains the bug?
3.0.0
Describe the bug
Hi,
Perhaps the problem with Grafana v11.3.0 can also be solved by modifying the module.
I don't know who exactly is responsible for fixing the problem, because i don't know exactly where the problem is caused and who can fix it best
I will also pass on the other tickets here:
https://github.com/grafana/grafana/issues/95408
https://github.com/grafana/grafana-image-renderer/issues/582
https://github.com/Mikesch-mp/icingaweb2-module-grafana/issues/344
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.
How to recreate the bug?
Rendering a Grafana Dashboard via a Icinga2 check.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing dashboard rendering through an Icinga2 check with Grafana 11.2.2, 11.3.0, and 11.3.2, using the reported Grafana plugin versions and grafana-image-renderer v3.11.6. Read the module's URL-building and rendering integration, then compare the generated viewPanel and variable parameters. Done means rendering no longer times out on the affected Grafana versions, or the incompatibility is documented with a confirmed upstream cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grafana, php
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100