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 allValue: true
multi: true multi: true
hide: 0 hide: 0
text: All
value: "$__all"
containers: {} containers: {}
manint: {} manint: {}
monint: {} monint: {}

View File

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