Using Grafana API Dashboard to create Dashboard w/ Grafana Variables

Hi All,

I am using the Grafana Dashboard API to create dashboards from JSON. I can the Graphs up but cant seem to get the Grafana variables to go thru. Here is a snippet of the templeting portion of the JSON, omitted sensitive data.

Any help appreciated.

“templating”: {
“list”: [
{
“allValue”: null,
“current”: {
“tags”: [],
“text”: “APP ID 2”,
“value”: [
“APP ID 2”,
“APP ID 2”
]
},
“datasource”: “Microsoft SQL Server”,
“definition”: “MY QUERY”,
“hide”: 0,
“includeAll”: false,
“label”: null,
“multi”: true,
“name”: “tier”,
“options”: [
{
“selected”: true,
“text”: “APP ID 0”,
“value”: “APP ID 0”
},
{
“selected”: true,
“text”: “APP ID 1”,
“value”: “APP ID 1”
},
{
“selected”: false,
“text”: “APP ID 2”,
“value”: “APP ID 2”
}
],
“query”: “$MYQUERY IS HERE”,
“refresh”: 0,
“regex”: “”,
“skipUrlSync”: false,
“sort”: 0,
“tagValuesQuery”: “”,
“tags”: [],
“tagsQuery”: “”,
“type”: “query”,
“useTags”: false
}
]
},
“timeFrom”: null,
“timeRegions”: [
{
“colorMode”: “background6”,
“fill”: true,
“fillColor”: “rgba(234, 112, 112, 0.12)”,
“line”: false,
“lineColor”: “rgba(237, 46, 24, 0.60)”,
“op”: “time”
}
],
“timeShift”: null,
“title”: “Title”,
“tooltip”: {
“shared”: false,
“sort”: 0,
“value_type”: “individual”
},
“transparent”: true,
“type”: “graph”,
“xaxis”: {
“buckets”: null,
“mode”: “time”,
“name”: null,
“show”: true,
“values”: []
},
“yaxes”: [
{
“decimals”: null,
“format”: “short”,
“label”: “CPU_95%”,
“logBase”: 1,
“max”: “100”,
“min”: “0”,
“show”: true
},
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
“show”: false
}
],
“yaxis”: {
“align”: false,
“alignLevel”: null
}
}
]
},