From 75f7893c11fb95bdd0f199caa473147d5db0463d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alby=20Hern=C3=A1ndez?= <61636487+achetronic@users.noreply.github.com> Date: Fri, 16 Jun 2023 18:46:02 +0100 Subject: [PATCH] feat: Add datasource as variable (#4584) --- other/metrics/grafana_seaweedfs.json | 22 ++++++++++++++++++- .../metrics/grafana_seaweedfs_heartbeat.json | 22 ++++++++++++++++++- other/metrics/grafana_seaweedfs_k8s.json | 4 ++-- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/other/metrics/grafana_seaweedfs.json b/other/metrics/grafana_seaweedfs.json index 88844b3c3..f4dc66419 100644 --- a/other/metrics/grafana_seaweedfs.json +++ b/other/metrics/grafana_seaweedfs.json @@ -2452,7 +2452,27 @@ "style": "dark", "tags": [], "templating": { - "list": [] + "list": [ + { + "current": { + "selected": true, + "text": "default", + "value": "default" + }, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + } + ] }, "time": { "from": "now-3h", diff --git a/other/metrics/grafana_seaweedfs_heartbeat.json b/other/metrics/grafana_seaweedfs_heartbeat.json index 35b9869ea..f434d75c2 100644 --- a/other/metrics/grafana_seaweedfs_heartbeat.json +++ b/other/metrics/grafana_seaweedfs_heartbeat.json @@ -1895,7 +1895,27 @@ "style": "dark", "tags": [], "templating": { - "list": [] + "list": [ + { + "current": { + "selected": true, + "text": "default", + "value": "default" + }, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + } + ] }, "time": { "from": "now-5m", diff --git a/other/metrics/grafana_seaweedfs_k8s.json b/other/metrics/grafana_seaweedfs_k8s.json index d1b6b1714..5c8dc277f 100644 --- a/other/metrics/grafana_seaweedfs_k8s.json +++ b/other/metrics/grafana_seaweedfs_k8s.json @@ -2179,8 +2179,8 @@ { "current": { "selected": true, - "text": "clickhouse-prom", - "value": "clickhouse-prom" + "text": "default", + "value": "default" }, "hide": 0, "includeAll": false,