From 063683786a3c6e60a6361813e4eff501346924b3 Mon Sep 17 00:00:00 2001 From: Gregor Tudan Date: Mon, 13 May 2024 18:56:10 +0200 Subject: [PATCH] Replace hardcoded datasource uids in the grafana dashboard (#5590) --- .../seaweedfs-grafana-dashboard.json | 52 +++++++++++++------ 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json b/k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json index da0a4973b..40e7807d6 100644 --- a/k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json +++ b/k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json @@ -4,6 +4,7 @@ { "builtIn": 1, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "enable": true, @@ -29,7 +30,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -44,6 +45,7 @@ }, { "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "Whether master is leader or not", @@ -108,6 +110,7 @@ }, { "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "Count times leader changed", @@ -197,6 +200,7 @@ }, { "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "Heartbeats received from components", @@ -322,7 +326,7 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Count replica placement mismatch", "fieldConfig": { @@ -396,7 +400,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -462,7 +466,7 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Total count of raft leaders", "fieldConfig": { @@ -615,7 +619,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -637,7 +641,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -656,6 +660,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -754,6 +759,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -858,6 +864,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -962,6 +969,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -1066,7 +1074,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -1085,6 +1093,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -1183,6 +1192,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -1281,6 +1291,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -1428,7 +1439,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le))", @@ -1443,7 +1454,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, pod))", @@ -1541,7 +1552,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, bucket))", @@ -1653,7 +1664,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "expr": "sum (rate(SeaweedFS_s3_request_total[$__rate_interval])) by (type)", "format": "time_series", @@ -1703,6 +1714,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -1832,7 +1844,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -1947,6 +1959,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -2082,7 +2095,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "expr": "sum(SeaweedFS_volumeServer_volumes) by (collection, type)", "format": "time_series", @@ -2094,7 +2107,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "expr": "sum(SeaweedFS_volumeServer_volumes)", "format": "time_series", @@ -2141,6 +2154,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fill": 1, @@ -2231,6 +2245,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fill": 1, @@ -2312,7 +2327,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2331,6 +2346,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -2419,6 +2435,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -2508,7 +2525,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2527,6 +2544,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -2648,6 +2666,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true, @@ -2738,6 +2757,7 @@ "dashLength": 10, "dashes": false, "datasource": { + "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editable": true,