What's new in Grafana Cloudbreadcrumb arrow Enforcing stricter data source UID format
What's new in Grafana Cloud
What's new in Grafana Cloud
Generally AvailableData sourcesPluginsBreaking change
Release date: 2025-05-05

Enforcing stricter data source UID format

We’ve had a standard way to define UIDs for Grafana objects for several years. While all of our internal code complies to this format, we didn’t yet have strict enforcement of this format in REST APIs and provisioning paths that allow the creation and update of data sources.

In Grafana v11.2, we added a new failWrongDSUID feature toggle that is turned off by default. When enabled, the REST APIs and provisioning reject any requests to create or update data source instances that have an incorrect UID.

We are enabling this toggle by default in Grafana v12.

Correct UIDs may only contain latin characters, numbers, and dashes. Find the exact Regex definition in our codebase here.

Migration/mitigation

You can turn off the failWrongDSUID feature toggle, but keep in mind that this behavior will become standard and not configurable within the next 6 months.


Related What's new posts