fix: grafana double counting for bucket usage, histrogram and objects (#11070)

master
Harshavardhana 4 years ago committed by GitHub
parent a60a0e52bb
commit 97856bfebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/metrics/prometheus/grafana/minio-overview.json

@ -307,7 +307,7 @@
"pluginVersion": "7.2.0", "pluginVersion": "7.2.0",
"targets": [ "targets": [
{ {
"expr": "sum without (bucket,instance) (bucket_usage_size)", "expr": "topk(1, sum(bucket_usage_size) by (instance))",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "1m", "interval": "1m",
@ -370,7 +370,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum without (bucket,instance) (bucket_usage_size)", "expr": "topk(1, sum(bucket_usage_size) by (instance))",
"interval": "", "interval": "",
"legendFormat": "Total Storage Used", "legendFormat": "Total Storage Used",
"refId": "A" "refId": "A"
@ -467,7 +467,7 @@
"pluginVersion": "7.2.0", "pluginVersion": "7.2.0",
"targets": [ "targets": [
{ {
"expr": "sum without (instance,bucket) (bucket_objects_histogram)", "expr": "max by (object_size) (bucket_objects_histogram)",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -1136,7 +1136,7 @@
"pluginVersion": "7.2.0", "pluginVersion": "7.2.0",
"targets": [ "targets": [
{ {
"expr": "sum(bucket_objects_count)", "expr": "topk(1, sum(bucket_objects_count) by (instance))",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "1m", "interval": "1m",
@ -2023,4 +2023,4 @@
"title": "MinIO Overview", "title": "MinIO Overview",
"uid": "pJnnS4hZz", "uid": "pJnnS4hZz",
"version": 190 "version": 190
} }

Loading…
Cancel
Save