Fix incorrect metric desc for bucketRequestsDuration (#18657)

This commit is contained in:
Krishnan Parthasarathi
2023-12-14 19:02:11 -08:00
committed by GitHub
parent bec1f7c26a
commit 162eced7d2
2 changed files with 1 additions and 7 deletions

View File

@@ -1643,7 +1643,7 @@ func getBucketTTFBMetric() *MetricsGroup {
cacheInterval: 10 * time.Second,
}
mg.RegisterRead(func(ctx context.Context) []Metric {
return getHistogramMetrics(bucketHTTPRequestsDuration, getBucketObjectDistributionMD())
return getHistogramMetrics(bucketHTTPRequestsDuration, getBucketTTFBDistributionMD())
})
return mg
}