No Data in Panel When Using Mixed Datasource After Upgrading to Grafana 11

Greetings,

After upgrading to Grafana 11, I’m experiencing an issue where my panels using the -- Mixed -- datasource always show “No Data”, even though it returns data in the Explore tab.

  • When using -- Mixed -- in a panel, it always displays “No Data”.
  • If I run the same query in Explore, I can see the expected data, but it is not rendered in the panel

The panel worked fine on Grafana v10.x, but the problems started after we upgraded to Grafana 11. Is this a known issue? Any pointers on fixing this would be much appreciated. Thanks!

1 Like

I also seem to be hitting this. If I edit one of the visualisations on a dashboard it appears that no query request is done. In fact even if I change the PromQL and press “Run queries” no network requests are done. However, if I switch the source from -- Mixed -- to me Prometheus source and then back again, “Run queries” works

I have a case where I see the bug and one where I don’t.

Digging in a bit more it appears that in the case where it doesn’t work query.datasource in PromQueryField is a string which is the datasource name. When it does work it is an object of the form {type: “prometheus”, uid: “123…”}. Having a string trips up this line in MixedDataSource, causing the query not to be run.

In both the working and non-working case my panels have their datasource specified by name, so it’s unclear where Grafana is converting the name to an object and indeed why it only does it sometimes. Unfortunately I am using Grafana at work in an unconventional way (dashboards/datasources are generated using templates) so it’s tricky to get a minimal reproducible example.

In the end I have changed the dashboards to specify the datasource with the object, which has resolved the issue for me.