From 2448a9e04727fba241510a46b37d926ce32a1fe2 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Thu, 27 Apr 2023 18:55:30 +0100 Subject: [PATCH] grafana: Remove minio_s3_requests_errors_total metric (#17094) --- cmd/object-handlers.go | 4 +- cmd/s3-zip-handlers.go | 4 +- .../prometheus/grafana/minio-dashboard.json | 96 +------------------ 3 files changed, 6 insertions(+), 98 deletions(-) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index d0df1dc93..6ddca0b07 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -544,7 +544,7 @@ func (api objectAPIHandlers) getObjectHandler(ctx context.Context, objectAPI Obj return } if !xnet.IsNetworkOrHostDown(err, true) { // do not need to log disconnected clients - logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client %w", err)) + logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client: %w", err)) } return } @@ -555,7 +555,7 @@ func (api objectAPIHandlers) getObjectHandler(ctx context.Context, objectAPI Obj return } if !xnet.IsNetworkOrHostDown(err, true) { // do not need to log disconnected clients - logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client %w", err)) + logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client: %w", err)) } return } diff --git a/cmd/s3-zip-handlers.go b/cmd/s3-zip-handlers.go index fe6ac5664..63c0d1c2c 100644 --- a/cmd/s3-zip-handlers.go +++ b/cmd/s3-zip-handlers.go @@ -224,7 +224,7 @@ func (api objectAPIHandlers) getObjectInArchiveFileHandler(ctx context.Context, return } if !xnet.IsNetworkOrHostDown(err, true) { // do not need to log disconnected clients - logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client %w", err)) + logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client: %w", err)) } return } @@ -235,7 +235,7 @@ func (api objectAPIHandlers) getObjectInArchiveFileHandler(ctx context.Context, return } if !xnet.IsNetworkOrHostDown(err, true) { // do not need to log disconnected clients - logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client %w", err)) + logger.LogIf(ctx, fmt.Errorf("Unable to write all the data to client: %w", err)) } return } diff --git a/docs/metrics/prometheus/grafana/minio-dashboard.json b/docs/metrics/prometheus/grafana/minio-dashboard.json index 703644c22..0fa794c44 100644 --- a/docs/metrics/prometheus/grafana/minio-dashboard.json +++ b/docs/metrics/prometheus/grafana/minio-dashboard.json @@ -1742,98 +1742,6 @@ "align": false } }, - { - "aliasColors": { - "S3 Errors": "light-red", - "S3 Requests": "light-green" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 12 - }, - "hiddenSeries": false, - "id": 71, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.0.0", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (server,api) (increase(minio_s3_requests_errors_total{job=\"$scrape_jobs\"}[$__rate_interval]))", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{server,api}}", - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - } - } - ], - "thresholds": [], - "timeRegions": [], - "title": "S3 API Request Error Rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:331", - "format": "none", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:332", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, { "datasource": { "type": "prometheus", @@ -2088,7 +1996,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "S3 API Request Error Rate (5xx)", + "title": "S3 API Request 5xx Error Rate", "tooltip": { "shared": true, "sort": 0, @@ -2180,7 +2088,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "S3 API Request Error Rate (4xx)", + "title": "S3 API Request 4xx Error Rate", "tooltip": { "shared": true, "sort": 0,