Closed Beleggrodion closed 1 year ago
the Module is not ready for Grafana 10. Please use 9 until i tested Grafana 10 (mostly the have breaking API changes again)
Ok, i changed Grafana back to Grafana v9.5.5 (284c43c23d) but i see no difference, had also the same "null" fields when i try to import the template. And also the "no data" graphs in icinga2.
I configured the 'indirect proxy' mode from https://github.com/Mikesch-mp/icingaweb2-module-grafana/blob/master/doc/02-installation.md without anonymous access.
Then i connected the data source, with the api token, which also finds the bucket:
also the mentioned other dashboard provides me data from the influx db, so the data source connection shoul'd be ok.
So then i go to dashboards and import over http://192.168.x.x:3000/dashboard/import the template file from https://github.com/Mikesch-mp/icingaweb2-module-grafana/blob/master/dashboards/influxdb/icinga2-default.json with values hostname null, service null and command null.
This generates me then an "no data" dashboard under url http://192.168.x.x:3000/d/ecb1c7b8-35cc-4a77-8b68-c3eaba7b83da/icinga2-default?orgId=1
I tried to follow the 02-installation.md and the 03-module-configuration.md from your doc.
Dashboards are made for Influx1, if you use influx2 you have to rewrite the query. The 'null' thing is only, because Grafana wants something in the variable field. The Module will fill this when doing the api call with real data.
Ok. thanks for the input. I searched for a rewrite of the query, but i found the comment of cthiemann in https://github.com/Mikesch-mp/icingaweb2-module-grafana/issues/277 about the v1 user . So i used this method.
Now it works as expected :)
I'm currently setup a complete new neearly up2date icinga2 instance with also the grafana module.
All currently run's in a VM and icinga2 with icinga2 web, director, etc. and also the grafana module are native installed. InfluxDB and Grafana are currently two Docker Images so that i can easly start from scratch if something is complety wrong. (i used this docker setup in other usecases with sucesss)
I used here InfluxDB 2.7.1 and Grafana OSS 10.0.1 (with image renderer 3.7.1 as extra docker image)
The data in the InfluxDB seem's good ( Dashboard https://grafana.com/grafana/dashboards/15361-icinga2-with-influxdb/ display's me some data )
So the next step was now to import the here provided dashboards (because their is no influxdb 1 or 2 version of the dashboard, both uses the same?) . But the import now wants some additional data:
The fields hostname, service and command cannot be empty, but null seem's also not correct. Perhaps thats something "new" in Grafana 10.x ? Because the screenshot in the 02-installation.md looks like from an older Grafana version. Perhaps Grafana 10 is to new ( release was this month)
So i leave the "null" values and finish the import and then configured the config.ini
The uid is the one from the URL: http://192.168.x.x:3000/d/ac49aba8-2e13-41e1-b4be-5367a9bbd503/icinga2-default?orgId=1 of the imported dashboard which don't display any data with "null" as headline. This uid is also in the JSON Export:
But also then in icingaweb2 on one of the service the graph display nothing:
So have i missed something or is this simple because of the "to new" grafana 10? Because the other dashboard has a hostname drop down?
Which is here missed. When i import the "base-metrics" dashboard it has this drop down but the list is empty.
Your Environment
icinga2 --version
): r2.13.7-1icinga2 feature list
): api checker icingadb influxdb2 mainlog notificationicinga2 daemon -C
):[2023-06-23 08:40:13 +0000] information/cli: Icinga application loader (version: r2.13.7-1) [2023-06-23 08:40:13 +0000] information/cli: Loading configuration file(s). [2023-06-23 08:40:13 +0000] information/ConfigItem: Committing config item(s). [2023-06-23 08:40:13 +0000] information/ApiListener: My API identity: mon01.rma01.4s-rma.intra [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 13 Notifications. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 IcingaApplication. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 2 HostGroups. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 Host. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 FileLogger. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 Downtime. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 Influxdb2Writer. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 CheckerComponent. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 IcingaDB. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 3 Zones. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 Endpoint. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 ApiUser. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 ApiListener. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 NotificationComponent. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 244 CheckCommands. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 UserGroup. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 3 ServiceGroups. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 3 TimePeriods. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 User. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 1 ScheduledDowntime. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 12 Services. [2023-06-23 08:40:13 +0000] information/ConfigItem: Instantiated 2 NotificationCommands. [2023-06-23 08:40:13 +0000] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' [2023-06-23 08:40:13 +0000] information/cli: Finished validating the configuration file(s).