grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
19 stars 9 forks source link

Grafana Datasource Variable - Value uses ID instead of Name #263

Closed mac3000 closed 4 months ago

mac3000 commented 7 months ago

Hi, We've recently upgraded Grafana to Version 10 (v10.2.2).

For the moment all is ok except for one issue -

We use Datasource (DS) Variables on most if not all of our Dashboards. On previous version, the name of the Datasource was also the Value we saw in browser URL, and that is what we used to link from other locations to these Dashboards + use in query of other Variables.

For some reason on the new version, the value we see is the Datasource ID and not name.

Any idea how we can fix this so we can use the Names and not IDs?

To try and reproduce, create a DS variable that will bring 1 or more results. In Results Preview you will see the Names of the DS. Then create a new Variable and use a Select query to just show value of the Variable you created before. In preview you should see same Value and not the DS ID.

Let me know if you need additional details.

Thanks

sarahzinger commented 7 months ago

@mac3000 Would you mind letting us know:

sarahzinger commented 7 months ago

Just as a heads up I was not able to recreate this using the following repro steps. Let me know if you see something different with your set up!

Let me know what if anything is different with your setup thanks!

sarahzinger commented 4 months ago

Closing since we are missing repro steps