-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Upgrade from 9.3.1 to 9.4.3 corrupted the datasource UIDs in 10% of dashboards #64123
Comments
@UnrealCraig this looks like a duplicate of #63904 The title says it is for the prometheus datasource, but other users have mentioned seeing it with elasticsearch datasource and others. Are you able to see the query editor when you edit a panel? Here's one of the developers' comments, I'm going to link these two issues:
|
The user-facing symptoms seem the same, but our underlying JSON isn't matching. |
Hi, here is Ivan from Dashboard, There are 2 issues here:
So, the big problem is we're corrupting the UIDs of the data sources. Can you share with us a dashboard that gets corrupted when migrating? I'd like to reproduce it locally. |
@UnrealCraig friendly ping :) |
We've closed this issue since it needs more information and hasn't had any activity recently. We can re-open it after you you add more information. To avoid having your issue closed in the future, please read our CONTRIBUTING guidelines. Happy graphing! |
What happened:
Many dashboards stopped working, when comparing the JSON models I discovered the cause is datasource references changed from e.g.:
to:
and others changed from:
to:
This seems to break entire dashboard and not just the Elasticsearch panels; when clicking Edit on any panel on a broken dashboard it shows the default datasource as the source, regardless of the correct source. If changing the datasource selection to correct datasource then all configuration (including queries etc) is lost. On the broken dashboards it seems every datasource on them has been edited and on the remaining dashboards every datasource still has correct format & UID.
What you expected to happen:
Datasource references should not have been edited by the upgrade
How to reproduce it (as minimally and precisely as possible):
Upgrade a large Grafana instance from 9.3.x to 9.4.x
We have over 200 dashboards in 8 organizations with up to 200 panels on each dashboard and up to 19 datasources in each organization (although we only have 4 different types of datasource in total)
The issue wasn't seen when testing on smaller instances (which use equivalent set of datasources)
Anything else we need to know?:
Datasources we use: Prometheus, Elasticsearch, Google StackDriver, Postgres
Environment:
The text was updated successfully, but these errors were encountered: