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

feat: use a stable dashboard UID #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aslafy-z
Copy link
Contributor

@aslafy-z aslafy-z commented Dec 5, 2024

Using a stable dashboard UID allows to do persistent hrefs to dashboards.

This PR also updates the title to a more friendly "Keycloak"

dashboard.json Outdated
"title": "KeyCloak MicroProfile Metrics",
"uid": null,
"title": "Keycloak",
"uid": "keycloak",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change would prevent the uid's from being generated by Grafana and it would therefore not be possible to monitor multiple KeyCloak instances with one Grafana instance. You can use the Grafana API to get the current UID of the Dashboard or to automatically generate shortened links. You can have a look at one of my other projects to solve your problem.

Suggested change
"uid": "keycloak",
"uid": null,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dashboard has variables to switch between job and instance. I think using them is the right method to monitor multiple. WDYT? Also, when adding a dashboard with a predefined uid, Grafana allows to update the uid on import time.

dashboard.json Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants