Hi everyone… I am running into an issue with using variables with Grafana accessing ADX datasource. I am running following grafana version:
curl -X GET ‘http://localhost:3000/api/health’
{
“commit”: “302831c12531f0245f17964d1f16c85db80a4c86”,
“database”: “ok”,
“version”: “11.0.1”
}%
I created the datasource as shown in the first picture. The data source creation is successful as can be seen from the save & test.
Now, I am creating a “query” type variable which is a simple KQL query as shown in the 3rd screenshot. Surprisingly, the $Datasource variable is getting expanded with the datasource uid instead of the datasource name and hence the o/p of this variable is coming to be an empty string.
Can someone please guide what it is that I am doing wrong. This worked fine with older versions of grafana (running fine in Grafana v8.3.4 (a551d74b11)
Will be happy to provide more info.
-
What Grafana version and what operating system are you using?
11.1 -
What are you trying to achieve?
Using grafana for visualization with ADX as datasource using KQL -
How are you trying to achieve it?
-
What happened?
Please see the screenshots and the explanation above.
-
What did you expect to happen?
The variable should be expanded with datasource name and not uid -
Can you copy/paste the configuration(s) that you are having problems with?
Screenshots are attached -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No. -
Did you follow any online instructions? If so, what is the URL?
Azure Data Explorer Datasource plugin for Grafana | Grafana Labs