We are importing dashboard as .json files in grafana and we see variables in dashboards are not taking the prometheus datasource by default, though it was fine in v11, Do we need to explicitly define datasource value in each variable now.. what we are using is shared below:
“templating”: {
“list”: [
{
“allowCustomValue”: false,
“definition”: “label_values(Customer)”,
“label”: “Customer”,
“name”: “customer”,
“options”: ,
“query”: {
“qryType”: 1,
“query”: “label_values(Customer)”,
“refId”: “PrometheusVariableQueryEditor-VariableQuery”
},
“refresh”: 1,
“regex”: “customer1.“,
“type”: “query”
}