Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Feature Request: eliminate Dashboard UID from config...use name #303

Closed
mdetrano opened this issue Feb 21, 2023 · 1 comment
Closed

Feature Request: eliminate Dashboard UID from config...use name #303

mdetrano opened this issue Feb 21, 2023 · 1 comment
Labels

Comments

@mdetrano
Copy link

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
@Mikesch-mp
Copy link
Owner

Just copy the graphs.ini to all systems and use the same database for grafana

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants