From 1935ebd6f092ce59cdb9da70db31831c8135dc1e Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 19 Jan 2021 06:46:13 -0700 Subject: [PATCH] Fix S3 GET bytes metric --- s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3/s3.go b/s3/s3.go index 1b94fd9..fc41b2f 100644 --- a/s3/s3.go +++ b/s3/s3.go @@ -879,7 +879,7 @@ func (r *Replica) WALReader(ctx context.Context, generation string, index int) ( defer out.Body.Close() r.getOperationTotalCounter.Inc() - r.getOperationTotalCounter.Add(float64(*out.ContentLength)) + r.getOperationBytesCounter.Add(float64(*out.ContentLength)) zr := lz4.NewReader(out.Body)