Replace hardcoded datasource uids in the grafana dashboard (#5590)

This commit is contained in:
Gregor Tudan
2024-05-13 18:56:10 +02:00
committed by GitHub
parent b7d184c740
commit 063683786a

View File

@@ -4,6 +4,7 @@
{ {
"builtIn": 1, "builtIn": 1,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"enable": true, "enable": true,
@@ -29,7 +30,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -44,6 +45,7 @@
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"description": "Whether master is leader or not", "description": "Whether master is leader or not",
@@ -108,6 +110,7 @@
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"description": "Count times leader changed", "description": "Count times leader changed",
@@ -197,6 +200,7 @@
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"description": "Heartbeats received from components", "description": "Heartbeats received from components",
@@ -322,7 +326,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"description": "Count replica placement mismatch", "description": "Count replica placement mismatch",
"fieldConfig": { "fieldConfig": {
@@ -396,7 +400,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": true, "exemplar": true,
@@ -462,7 +466,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"description": "Total count of raft leaders", "description": "Total count of raft leaders",
"fieldConfig": { "fieldConfig": {
@@ -615,7 +619,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": true, "exemplar": true,
@@ -637,7 +641,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -656,6 +660,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -754,6 +759,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -858,6 +864,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -962,6 +969,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -1066,7 +1074,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -1085,6 +1093,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -1183,6 +1192,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -1281,6 +1291,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -1428,7 +1439,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le))", "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le))",
@@ -1443,7 +1454,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, pod))", "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, pod))",
@@ -1541,7 +1552,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, bucket))", "expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_s3_request_seconds_bucket[$__rate_interval])) by (le, type, bucket))",
@@ -1653,7 +1664,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"expr": "sum (rate(SeaweedFS_s3_request_total[$__rate_interval])) by (type)", "expr": "sum (rate(SeaweedFS_s3_request_total[$__rate_interval])) by (type)",
"format": "time_series", "format": "time_series",
@@ -1703,6 +1714,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -1832,7 +1844,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -1947,6 +1959,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -2082,7 +2095,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"expr": "sum(SeaweedFS_volumeServer_volumes) by (collection, type)", "expr": "sum(SeaweedFS_volumeServer_volumes) by (collection, type)",
"format": "time_series", "format": "time_series",
@@ -2094,7 +2107,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"expr": "sum(SeaweedFS_volumeServer_volumes)", "expr": "sum(SeaweedFS_volumeServer_volumes)",
"format": "time_series", "format": "time_series",
@@ -2141,6 +2154,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"fill": 1, "fill": 1,
@@ -2231,6 +2245,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"fill": 1, "fill": 1,
@@ -2312,7 +2327,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -2331,6 +2346,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -2419,6 +2435,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -2508,7 +2525,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "${DS_PROMETHEUS}"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@@ -2527,6 +2544,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -2648,6 +2666,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,
@@ -2738,6 +2757,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editable": true, "editable": true,