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 <shubhendu@minio.io>
This commit is contained in:
Shubhendu 2023-08-21 21:34:38 +05:30 committed by GitHub
parent fa2a8d7209
commit c3c8441a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",