The configuration of this module could be made easier and more portable if the particular Dashboard UID was not required for the default and graph dashboards to be used. The UID is assigned by Grafana on import or creation...the name is constant and known.
Expected Behavior
Configure Default and Graph dashboards using the Dashboard name from Grafana.
Current Behavior
It is always necessary to enter the Dashboard UID (which the module uses to construct the URL).
Possible Solution
The Grafana API returns dashboard information if requested. ( example api/search?query=icinga2-default returns json data that includes the uid of the default dashboard included with this module after it has been imported to Grafana). That uid could be requested and used to construct the needed URLs to retrieve graphs for this module.
Context
This feature would help sync up multiple systems with the same basic graph templates to be used with Grafana. Easier to deploy and automate.
(This could also pave the way for a naming convention to be implemented which would let this module find applicable templates on its own...no further config necessary)
Your Environment
Icinga Web 2 Grafana version (System - About): 1.4.3
The configuration of this module could be made easier and more portable if the particular Dashboard UID was not required for the default and graph dashboards to be used. The UID is assigned by Grafana on import or creation...the name is constant and known.
Expected Behavior
Configure Default and Graph dashboards using the Dashboard name from Grafana.
Current Behavior
It is always necessary to enter the Dashboard UID (which the module uses to construct the URL).
Possible Solution
The Grafana API returns dashboard information if requested. ( example api/search?query=icinga2-default returns json data that includes the uid of the default dashboard included with this module after it has been imported to Grafana). That uid could be requested and used to construct the needed URLs to retrieve graphs for this module.
Context
This feature would help sync up multiple systems with the same basic graph templates to be used with Grafana. Easier to deploy and automate.
(This could also pave the way for a naming convention to be implemented which would let this module find applicable templates on its own...no further config necessary)
Your Environment