Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Rendering of a Grafana Dashboard run into a timeout #40

Open
1 task done
manny4566 opened this issue Dec 17, 2024 · 4 comments
Open
1 task done

[Bug]: Rendering of a Grafana Dashboard run into a timeout #40

manny4566 opened this issue Dec 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@manny4566
Copy link

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:

grafana/grafana#95408
grafana/grafana-image-renderer#582
Mikesch-mp/icingaweb2-module-grafana#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.

@manny4566 manny4566 added the bug Something isn't working label Dec 17, 2024
@martialblog
Copy link
Member

Hi, thanks for the detailed info. I'll have a look at it.

@manny4566
Copy link
Author

manny4566 commented Dec 18, 2024

Hi, thanks for the detailed info. I'll have a look at it.

Thank you.
Maybe it had also something to do with $__all.
I see today, that the graph is rendered from a check, which fill out a variable and not there where the variable is not transmitted by the grafana module:

That works ( disk check with the mount point /home (&var-disk=%2Fhome&var-threadcount=$__all) ):
https://XXX/d/icinga2/icinga2-with-influxdb?var-hostname=XXX&var-service=Disk%20Space%20%2Fhome&var-command=disk&var-disk=%2Fhome&from=now-7d&to=now&orgId=1&viewPanel=panel-8&timezone=browser&var-threadcount=$__all

This don't work (&var-disk=$__all&var-threadcount=$__all)
https://XXX/d/icinga2/icinga2-with-influxdb?var-hostname=XXX&var-service=Memory&var-command=mem&from=now-3h&to=now&orgId=1&viewPanel=panel-13&timezone=browser&var-disk=$__all&var-threadcount=$__all

When i open the URL directly in the browser, it works for both:

image

image

@GalipoliX
Copy link

Is there any progress on using the Plugin with Grafana 11.3 Versions?
With v11.2 everything works fine, but there are massive problems (timeout in proxy mode, broken graphs, etc.).
Im currently locked my Graphana Version, but it would be nice if this will work with current Version.

Thanks!

@RincewindsHat
Copy link
Member

Hi,
We are aware of the problems and will likely work on them in due time.
At this point, I am not afraid to add a reminder, that sadly we have to earn money to pay rent and such trivialities, a necessity to which this piece of software is not a direct contributor.
Therefore the priorities are not favouring this very project.

I have to ask to you for some patience in the mean time :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants