[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:
parent
ea4b570483
commit
0097bb1829
@ -1,13 +1,5 @@
|
|||||||
{
|
{
|
||||||
"__inputs": [
|
"__inputs": [
|
||||||
{
|
|
||||||
"name": "DS_PROMETHEUS",
|
|
||||||
"label": "prometheus",
|
|
||||||
"description": "",
|
|
||||||
"type": "datasource",
|
|
||||||
"pluginId": "prometheus",
|
|
||||||
"pluginName": "Prometheus"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"__elements": {},
|
"__elements": {},
|
||||||
"__requires": [
|
"__requires": [
|
||||||
@ -1215,11 +1207,21 @@
|
|||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
|
"type": "datasource",
|
||||||
|
"name": "DS_PROMETHEUS",
|
||||||
|
"label": "datasource",
|
||||||
"current": {},
|
"current": {},
|
||||||
"datasource": {
|
"hide": 0,
|
||||||
"type": "prometheus",
|
"includeAll": false,
|
||||||
"uid": "${DS_PROMETHEUS}"
|
"multi": false,
|
||||||
},
|
"options": [],
|
||||||
|
"query": "prometheus",
|
||||||
|
"queryValue": "",
|
||||||
|
"refresh": 1,
|
||||||
|
"regex": "",
|
||||||
|
"skipUrlSync": false
|
||||||
|
},
|
||||||
|
{
|
||||||
"definition": "label_values(model_name)",
|
"definition": "label_values(model_name)",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": false,
|
"includeAll": false,
|
||||||
@ -1250,3 +1252,4 @@
|
|||||||
"version": 1,
|
"version": 1,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user