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

Use dashboard uid to allow update / delete #2

Open
smalldave opened this issue Mar 21, 2018 · 5 comments
Open

Use dashboard uid to allow update / delete #2

smalldave opened this issue Mar 21, 2018 · 5 comments

Comments

@smalldave
Copy link

I'm thinking about using the uid of the dashboard to allow updating and removing dashboards without holding state somewhere.

It would mean that the uid would be mandatory in the configmap (not sure how to enforce that).

Is this of interest to you?

@gdmello
Copy link
Collaborator

gdmello commented Apr 24, 2018

@smalldave - I haven't tried this out, if you create the same dashboard multiple times (with different panels) via the ConfigMap, are they created as different dashboards?

@smalldave
Copy link
Author

if they have the same uid then it replaces them.
i've got a working example at
https://github.com/smalldave/grafana-operator

@smalldave
Copy link
Author

you'll want the uid branch

@mcasimir
Copy link

mcasimir commented Jun 1, 2018

It would be great to craft theuid out of the config map namespace+name+key if is not present, both to expose less about the implementation and to avoid the need of some special script to set such uid on all the dashboards each time a dashboard is changed and we want to update the config map with the changes.

@tsloughter
Copy link
Owner

Adding a uid if not present would be great, yea.

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

No branches or pull requests

4 participants