Linuxfabrik / monitoring-plugins

200+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
207 stars 48 forks source link

Grafana-Panels: No queries applied #742

Closed Kaliumiodid closed 5 months ago

Kaliumiodid commented 5 months ago

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

Bug description

I applied some of the dashboards via grizzly v0.2.0 (cpu-usage, memory-usage, default, icinga). All Grafana-related information seems to be imported, but the queries are missing.

Steps to reproduce - Plugin call

gzz apply /tmp/memory-usage.yml

Steps to reproduce - Data

No response

Environment

grizzly 0.2.0 InfluxDB v2.x (and Flux for queries accordingly) Grafana 10.3.

Plugin Version

Not check-related.

Python version

No response

List of Python modules

No response

Additional Information

No response

markuslf commented 5 months ago

Did you follow https://github.com/Linuxfabrik/monitoring-plugins/blob/main/GRAFANA.rst?

Kaliumiodid commented 5 months ago

Yes. For setup, I copied the provided code, the environment variables are set, the grizzly user has the editor role (with admin I get the same result). For the yml-files I copy the raw content from the files on GitHub.

markuslf commented 5 months ago

I've updated the GRAFANA.rst to give you a screenshot of what it should look like after installing everything in Grafana, but I'm afraid I can't help you any further here. If you need more help, we need to take a look at your installation. We can offer you this as part of Service & Support.

Kaliumiodid commented 5 months ago

Thank you for the help. I found the issue. After looking into the Grafana log, I saw an error that the command SHOW TAG VALUES FROM "cmd-check-about-me" WITH KEY = "hostname" is not working. So, I created another datasource using InfluxQL instead of Flux and now it's working fine.

markuslf commented 5 months ago

Great! I will update the readme with your findings. Thank you.