From 90e505e58fa5e03032fb03892a8134f4ae8d9233 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 12 Sep 2021 11:28:15 -0700 Subject: [PATCH] calculate API requests/error as increase() intervals not as rate() --- docs/metrics/prometheus/grafana/minio-overview.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/metrics/prometheus/grafana/minio-overview.json b/docs/metrics/prometheus/grafana/minio-overview.json index 3f6704814..d369ffc04 100644 --- a/docs/metrics/prometheus/grafana/minio-overview.json +++ b/docs/metrics/prometheus/grafana/minio-overview.json @@ -1539,7 +1539,7 @@ "targets": [ { "exemplar": true, - "expr": "sum by (server,api) (rate(minio_s3_requests_total{job=\"$scrape_jobs\"}[$__rate_interval]))", + "expr": "sum by (server,api) (increase(minio_s3_requests_total{job=\"$scrape_jobs\"}[$__rate_interval]))", "interval": "1m", "intervalFactor": 2, "legendFormat": "{{server,api}}", @@ -1635,7 +1635,7 @@ "targets": [ { "exemplar": true, - "expr": "rate(minio_s3_requests_errors_total{job=\"$scrape_jobs\"}[$__rate_interval])", + "expr": "sum by (server,api) (increase(minio_s3_requests_errors_total{job=\"$scrape_jobs\"}[$__rate_interval]))", "interval": "1m", "intervalFactor": 2, "legendFormat": "{{server,api}}", @@ -2671,4 +2671,4 @@ "title": "MinIO Overview", "uid": "TgmJnqnnk", "version": 18 -} \ No newline at end of file +}