Fix S3 GET bytes metric
This commit is contained in:
2
s3/s3.go
2
s3/s3.go
@@ -879,7 +879,7 @@ func (r *Replica) WALReader(ctx context.Context, generation string, index int) (
|
|||||||
defer out.Body.Close()
|
defer out.Body.Close()
|
||||||
|
|
||||||
r.getOperationTotalCounter.Inc()
|
r.getOperationTotalCounter.Inc()
|
||||||
r.getOperationTotalCounter.Add(float64(*out.ContentLength))
|
r.getOperationBytesCounter.Add(float64(*out.ContentLength))
|
||||||
|
|
||||||
zr := lz4.NewReader(out.Body)
|
zr := lz4.NewReader(out.Body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user