From c3c8441a1d500f7139eaae660bccc92df6306ad7 Mon Sep 17 00:00:00 2001 From: Shubhendu Date: Mon, 21 Aug 2023 21:34:38 +0530 Subject: [PATCH] Corrected the count of buckets and objects graphs (#17883) In distributed setup with a load balancer, randmoly any server would report the metrics `minio_cluster_bucket_total` and `minio_cluster_usage_object_total` and while graphing it, we should take max of reported values. Signed-off-by: Shubhendu Ram Tripathi --- docs/metrics/prometheus/grafana/minio-dashboard.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/metrics/prometheus/grafana/minio-dashboard.json b/docs/metrics/prometheus/grafana/minio-dashboard.json index a247a28f4..ede46a554 100644 --- a/docs/metrics/prometheus/grafana/minio-dashboard.json +++ b/docs/metrics/prometheus/grafana/minio-dashboard.json @@ -1071,7 +1071,7 @@ }, "editorMode": "code", "exemplar": true, - "expr": "minio_cluster_bucket_total{job=\"$scrape_jobs\"}", + "expr": "max(minio_cluster_bucket_total{job=\"$scrape_jobs\"})", "format": "time_series", "instant": false, "interval": "1m", @@ -1505,7 +1505,7 @@ }, "editorMode": "code", "exemplar": true, - "expr": "minio_cluster_usage_object_total{job=\"$scrape_jobs\"}", + "expr": "max(minio_cluster_usage_object_total{job=\"$scrape_jobs\"})", "format": "time_series", "instant": false, "interval": "1m",