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

Grafana dashboards have same UIDs as cortex ones #1789

Closed
fculpo opened this issue Apr 29, 2022 · 3 comments · Fixed by #1801 or #1808
Closed

Grafana dashboards have same UIDs as cortex ones #1789

fculpo opened this issue Apr 29, 2022 · 3 comments · Fixed by #1801 or #1808

Comments

@fculpo
Copy link

fculpo commented Apr 29, 2022

Hi,

We are using the mixins in a kube-prometheus environnmenent.
We have a mimir and a cortex cluster for different uses.

The mimir-mixin dashboards have the same UIDs as cortex-mixin ones and grafana refuses to load them.

Would it be possible to generate new UIDs ?

Thanks

@pracucci
Copy link
Collaborator

Good point! Yes, I think we can definitely do it.

@fculpo
Copy link
Author

fculpo commented Apr 29, 2022

Awesome ! That would be much appreciated :)

@pracucci
Copy link
Collaborator

This is the code used by Grafana to auto-generate dashboard UIDs. We could just run it to generate new random ones:
https://github.com/grafana/grafana/blob/main/pkg/util/shortid_generator.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants