mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Enforce a bucket limit of 100 to v2 metrics calls (#20761)
Enforce a bucket count limit on metrics for v2 calls. If people hit this limit, they should move to v3, as certain calls explode with high bucket count. Reviewers: This *should* only affect v2 calls, but the complexity is overwhelming.
This commit is contained in:
@@ -165,7 +165,7 @@ var (
|
||||
)
|
||||
|
||||
func (t *tierMetrics) Report() []MetricV2 {
|
||||
metrics := getHistogramMetrics(t.histogram, tierTTLBMD, true)
|
||||
metrics := getHistogramMetrics(t.histogram, tierTTLBMD, true, true)
|
||||
t.RLock()
|
||||
defer t.RUnlock()
|
||||
for tier, stat := range t.requestsCount {
|
||||
|
||||
Reference in New Issue
Block a user