Provisioned dashboard doesn't load the data by default

Hello everyone!

I’m having an issue with provisioning dashboards with Grafana Operator.

What Grafana version and what operating system are you using?

11.2.1

What are you trying to achieve?

I’m looking into deploying the same dashboard via GitOps for many namespaces (dashboard shows resource usage and logs for all pods in team’s namespace) and would prefer not to have to click variable config UI buttons for a dashboard to load data.

The dashboard appears but data on it doesn’t until I go to Prometheus datasource query variable used by the dashboard (returns list of clusters) and hit the “Run query” button once and hit the “Apply”. Imgur: The magic of the Internet

After that, the dashboard works fine.

How are you trying to achieve it?

Adding preconfigured dashboard JSON to GrafanaDashboard CRD YAML manifest.

What happened?

Dashboard got deployed but didn’t display any data - all panels were empty.

What did you expect to happen?

Dashboard to fully load data in all panels.

Can you copy/paste the configuration(s) that you are having problems with?

Dashboard JSON: Source Code | zutgz | Rocket Powered Pastebin

Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

parse error : queries require at least one regexp or equality matcher that does not have an empty-compatible value. For instance, app=~".*" does not meet this requirement, but app=~".+" will

Did you follow any online instructions? If so, what is the URL?