diff --git a/cmd/gateway-common.go b/cmd/gateway-common.go index d10bda345..09356721a 100644 --- a/cmd/gateway-common.go +++ b/cmd/gateway-common.go @@ -388,7 +388,7 @@ func gatewayHandleEnvVars() { // shouldMeterRequest checks whether incoming request should be added to prometheus gateway metrics func shouldMeterRequest(req *http.Request) bool { - return !(guessIsBrowserReq(req) || guessIsHealthCheckReq(req) || guessIsMetricsReq(req)) + return req.URL != nil && !strings.HasPrefix(req.URL.Path, minioReservedBucketPath+slashSeparator) } // MetricsTransport is a custom wrapper around Transport to track metrics