Skip to content

Commit 11f0b7f

Browse files
committed
Fix Grafana dashboard datasource for file-provisioned mode
File-provisioned dashboards do not resolve ${DS_PROMETHEUS} template variables. Remove uid from all panel datasource references so Grafana auto-selects the default Prometheus datasource.
1 parent 6f70607 commit 11f0b7f

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

deploy/grafana/benchmark-dashboard.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"title": "Deployment Replicas",
2424
"type": "timeseries",
2525
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
26-
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
26+
"datasource": { "type": "prometheus" },
2727
"fieldConfig": {
2828
"defaults": {
2929
"color": { "mode": "palette-classic" },
@@ -59,7 +59,7 @@
5959
"title": "WVA Desired Ratio",
6060
"type": "timeseries",
6161
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
62-
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
62+
"datasource": { "type": "prometheus" },
6363
"fieldConfig": {
6464
"defaults": {
6565
"color": { "mode": "palette-classic" },
@@ -88,7 +88,7 @@
8888
"title": "KV Cache Usage",
8989
"type": "timeseries",
9090
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 },
91-
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
91+
"datasource": { "type": "prometheus" },
9292
"fieldConfig": {
9393
"defaults": {
9494
"color": { "mode": "palette-classic" },
@@ -131,7 +131,7 @@
131131
"title": "Queue Depth (Requests Waiting)",
132132
"type": "timeseries",
133133
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 },
134-
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
134+
"datasource": { "type": "prometheus" },
135135
"fieldConfig": {
136136
"defaults": {
137137
"color": { "mode": "palette-classic" },
@@ -165,7 +165,7 @@
165165
"title": "Scaling Activity",
166166
"type": "timeseries",
167167
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 16 },
168-
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
168+
"datasource": { "type": "prometheus" },
169169
"fieldConfig": {
170170
"defaults": {
171171
"color": { "mode": "palette-classic" },
@@ -202,21 +202,7 @@
202202
],
203203
"schemaVersion": 39,
204204
"tags": ["benchmark", "wva", "autoscaling"],
205-
"templating": {
206-
"list": [
207-
{
208-
"current": { "selected": false, "text": "Prometheus", "value": "Prometheus" },
209-
"hide": 0,
210-
"includeAll": false,
211-
"name": "DS_PROMETHEUS",
212-
"options": [],
213-
"query": "prometheus",
214-
"refresh": 1,
215-
"regex": "",
216-
"type": "datasource"
217-
}
218-
]
219-
},
205+
"templating": { "list": [] },
220206
"time": { "from": "now-30m", "to": "now" },
221207
"timepicker": {},
222208
"timezone": "utc",

0 commit comments

Comments
 (0)