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
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.
Comments
Similar requests
GitSync: Support ConfigMap as a storage backend for synchronized dashboards
0 votes · 0 comments
GitSync support for rules
15 votes · 0 comments
Alerting: Support for GitSync
143 votes · 0 comments
Git Sync: allow creating new folders in `folderless` mode
0 votes · 0 comments
Add support for MT quota service for consumption by MT Dashboards Server
0 votes · 0 comments
No comments yet.