role template var now selects default role

This commit is contained in:
m0duspwnens
2021-07-23 16:34:58 -04:00
parent 08e9a58f2e
commit 5a06f0dce9
2 changed files with 7 additions and 5 deletions

View File

@@ -34,6 +34,8 @@ grafana:
allValue: true
multi: true
hide: 0
text: All
value: "$__all"
containers: {}
manint: {}
monint: {}

View File

@@ -3,17 +3,17 @@
"current": {
"selected": true,
"tags": [],
"text": [],
"value": []
"text": [{{ TEMPLATES.role.get('text', DASHBOARD)| json }}],
"value": [{{ TEMPLATES.role.get('value', DASHBOARD)| json }}]
},
"datasource": "InfluxDB",
"definition": "show tag values with key=\"role\"",
"description": null,
"error": null,
"hide": 0,
"includeAll": true,
"hide": {{ TEMPLATES.role.get('hide', 0)| json }},
"includeAll": {{ TEMPLATES.role.get('includeAll', true)| json }},
"label": "Role",
"multi": true,
"multi": {{ TEMPLATES.role.get('multi', true)| json }},
"name": "role",
"options": [],
"query": "show tag values with key=\"role\"",