Skip to content

Commit 0097bb1

Browse files
authored
[Bugfix] Use templated datasource in grafana.json to allow automatic imports (#6136)
Signed-off-by: Christian Rohmann <[email protected]>
1 parent ea4b570 commit 0097bb1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

examples/production_monitoring/grafana.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"__inputs": [
3-
{
4-
"name": "DS_PROMETHEUS",
5-
"label": "prometheus",
6-
"description": "",
7-
"type": "datasource",
8-
"pluginId": "prometheus",
9-
"pluginName": "Prometheus"
10-
}
113
],
124
"__elements": {},
135
"__requires": [
@@ -1215,11 +1207,21 @@
12151207
"templating": {
12161208
"list": [
12171209
{
1210+
"type": "datasource",
1211+
"name": "DS_PROMETHEUS",
1212+
"label": "datasource",
12181213
"current": {},
1219-
"datasource": {
1220-
"type": "prometheus",
1221-
"uid": "${DS_PROMETHEUS}"
1222-
},
1214+
"hide": 0,
1215+
"includeAll": false,
1216+
"multi": false,
1217+
"options": [],
1218+
"query": "prometheus",
1219+
"queryValue": "",
1220+
"refresh": 1,
1221+
"regex": "",
1222+
"skipUrlSync": false
1223+
},
1224+
{
12231225
"definition": "label_values(model_name)",
12241226
"hide": 0,
12251227
"includeAll": false,
@@ -1250,3 +1252,4 @@
12501252
"version": 1,
12511253
"weekStart": ""
12521254
}
1255+

0 commit comments

Comments
 (0)