From f0fe310e7e62b30c9149d61e000d1ee0ed114480 Mon Sep 17 00:00:00 2001 From: DullJZ <79080562+DullJZ@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:07:46 +0800 Subject: [PATCH] Add bucket space in grafana --- .../dashboards/s3-balance-dashboard.json | 61 ++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/deploy/monitoring/grafana/dashboards/s3-balance-dashboard.json b/deploy/monitoring/grafana/dashboards/s3-balance-dashboard.json index a4ead41..c23c237 100644 --- a/deploy/monitoring/grafana/dashboards/s3-balance-dashboard.json +++ b/deploy/monitoring/grafana/dashboards/s3-balance-dashboard.json @@ -258,6 +258,65 @@ ], "title": "操作延迟 (秒)", "type": "timeseries" + }, + { + "datasource": "Prometheus", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlPu" + }, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 1073741824 + }, + { + "color": "red", + "value": 268435456 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 11, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "targets": [ + { + "expr": "s3_balance_bucket_capacity_bytes - s3_balance_bucket_usage_bytes", + "legendFormat": "{{bucket}}", + "refId": "A" + } + ], + "title": "存储桶剩余容量", + "type": "stat" } ], "refresh": "5s", @@ -276,4 +335,4 @@ "title": "S3 Balance 监控面板", "uid": "s3-balance-monitoring", "version": 1 -} \ No newline at end of file +}