Skip to content

Commit f955078

Browse files
committed
(fleet/grafana-dashboards) fix Deliverator Summary $site var
To work with both `s3nd_upload_active` and `uploads`.
1 parent 95c39b7 commit f955078

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

fleet/lib/grafana-dashboards/dashboards/deliverator-summary.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,19 +1358,23 @@
13581358
"$__all"
13591359
]
13601360
},
1361-
"definition": "label_values(uploads,site)",
1361+
"datasource": {
1362+
"type": "prometheus",
1363+
"uid": "${datasource}"
1364+
},
1365+
"definition": "query_result({__name__=~\"s3nd_upload_active|uploads\"})",
13621366
"description": "",
13631367
"includeAll": true,
13641368
"multi": true,
13651369
"name": "site",
13661370
"options": [],
13671371
"query": {
1368-
"qryType": 1,
1369-
"query": "label_values(uploads,site)",
1372+
"qryType": 3,
1373+
"query": "query_result({__name__=~\"s3nd_upload_active|uploads\"})",
13701374
"refId": "PrometheusVariableQueryEditor-VariableQuery"
13711375
},
13721376
"refresh": 1,
1373-
"regex": "",
1377+
"regex": "/site=\"(?<text>[^\"]+)/g",
13741378
"sort": 1,
13751379
"type": "query"
13761380
},

0 commit comments

Comments
 (0)