From e47a31f9fcb702c4dc23f142350a3788bb7ff951 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 5 Feb 2023 10:40:10 +0530 Subject: [PATCH] fix: object size distribution in metrics for all objects (#16539) --- docs/metrics/prometheus/grafana/minio-dashboard.json | 2 +- docs/metrics/prometheus/grafana/minio-replication.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/metrics/prometheus/grafana/minio-dashboard.json b/docs/metrics/prometheus/grafana/minio-dashboard.json index 9463b4e04..9904f4af9 100644 --- a/docs/metrics/prometheus/grafana/minio-dashboard.json +++ b/docs/metrics/prometheus/grafana/minio-dashboard.json @@ -564,7 +564,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (range) (minio_bucket_objects_size_distribution{job=\"$scrape_jobs\"})", + "expr": "max by (range) (sum (minio_bucket_objects_size_distribution{job=\"$scrape_jobs\"}) by (range))", "format": "time_series", "instant": false, "interval": "", diff --git a/docs/metrics/prometheus/grafana/minio-replication.json b/docs/metrics/prometheus/grafana/minio-replication.json index a52150a5e..ab6ff127d 100644 --- a/docs/metrics/prometheus/grafana/minio-replication.json +++ b/docs/metrics/prometheus/grafana/minio-replication.json @@ -438,7 +438,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (range) (minio_bucket_objects_size_distribution{job=\"$scrape_jobs\"})", + "expr": "max by (range) (sum (minio_bucket_objects_size_distribution{job=\"$scrape_jobs\"}) by (range))", "format": "time_series", "instant": false, "interval": "",