[Bugfix] Use templated datasource in grafana.json to allow automatic imports (#6136)

Signed-off-by: Christian Rohmann <christian.rohmann@inovex.de>
This commit is contained in:
Christian Rohmann
2024-07-05 18:49:47 +02:00
committed by GitHub
parent ea4b570483
commit 0097bb1829

View File

@@ -1,13 +1,5 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
@@ -1215,11 +1207,21 @@
"templating": {
"list": [
{
"type": "datasource",
"name": "DS_PROMETHEUS",
"label": "datasource",
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"hide": 0,
"includeAll": false,
"multi": false,
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false
},
{
"definition": "label_values(model_name)",
"hide": 0,
"includeAll": false,
@@ -1250,3 +1252,4 @@
"version": 1,
"weekStart": ""
}