FeatureFuel
0

git-sync: "uid too long" when git-sync a dashboard with a long metadata.name

Source: grafana/grafana#132220 · opened by @prune998
What happened?

using git-sync to import dashboards in the grafana v2 format leads to error




What did you expect to happen?

I expect the dashboard to be valie, according to docs at

Nothing says the metadata.name will be transformed into the legacy uid, which seems to be limited to 40 chars.

At least, I would expect the git-sync process to hash to metadata.name intp a UID instead of using the plain value, which, by Kubernetes design (as it seems you aligned on that) is 256 chars.

Did this work before?

don't know, git-sync and v2 API is pretty new

How do we reproduce it?

1. create a v2 dashboard with a really long name
2. import the dashboard using git-sync
3. experiencer the error and no dashboard


Is the bug inside a dashboard panel?

no

Environment (with versions)?

Grafana: Grafana v13.2.1 (56cd3e9288)
OS: Kubernetes (GKE)
Browser: chrome, not relevent


Grafana platform?

Kubernetes

Datasource(s)?

none

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests