VolkovLabs / business-variable

Update dashboard variables for @grafana
https://docs.volkovlabs.io
Apache License 2.0
31 stars 0 forks source link

Variable is not selected or do not match returned fields (Grafana Cloud with Scenes) #192

Open ihbidgroup opened 3 weeks ago

ihbidgroup commented 3 weeks ago

Hi, it seems like there is some bug when using Grafana v11.3 and business-variable v3.0+ together (I tested on 3.0 and 3.2). I have replicated this behavior across a couple of Grafana instances and using Postgresql, Influxql, and Flux type query variables.

It appears the variable panels cannot obtain the list of variable values returned from these queries. Custom and Textbox type variables do seem to work fine. Essentially, when a query type variable is selected under "Select variable to display" in the variable panel, it throws the error "Variable is not selected or do not match returned fields."

Screenshot of error: image

Screenshot confirming variable values are returned by query: image

mikhail-vl commented 3 weeks ago

@ihbidgroup Do you use Grafana Cloud or OSS? If OSS, do you use Scenes dashboards?

Was it working before or it's a new installation?

ihbidgroup commented 3 weeks ago

@mikhail-vl This is on Grafana Cloud and there are no Scenes dashboards implemented. Both instances were working and were automatically updated to the latest Grafana version v11.3.0-74868 (4a753dd2d5). I can't confirm which exact update broke the panels.

mikhail-vl commented 2 weeks ago

@ihbidgroup All Grafana Cloud instances has Scenes dashboards enabled by default which introduced breaking changes for the dashboard events used in the Variable panel and other plugins.

It was resolved in https://github.com/grafana/grafana/issues/90538, but broken again in the latest releases. We are working with the Grafana team to resolve it.

mikhail-vl commented 16 hours ago

We identified the issue: https://github.com/grafana/grafana/pull/93327