calculate API requests/error as increase() intervals not as rate()

This commit is contained in:
Harshavardhana 2021-09-12 11:28:15 -07:00
parent 410b8dd0fd
commit 90e505e58f

View File

@ -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
}
}