mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Revert "Fix: Change TTFB metric type to histogram (#20999)"
This reverts commit 8d223e07fb.
This commit is contained in:
@@ -319,7 +319,6 @@ type MetricDescription struct {
|
||||
Name MetricName `json:"MetricName"`
|
||||
Help string `json:"Help"`
|
||||
Type MetricTypeV2 `json:"Type"`
|
||||
Buckets []float64 `json:"Buckets,omitempty"`
|
||||
}
|
||||
|
||||
// MetricV2 captures the details for a metric
|
||||
@@ -1544,8 +1543,7 @@ func getS3TTFBDistributionMD() MetricDescription {
|
||||
Subsystem: ttfbSubsystem,
|
||||
Name: ttfbDistribution,
|
||||
Help: "Distribution of time to first byte across API calls",
|
||||
Type: histogramMetric,
|
||||
Buckets: []float64{0.01, 0.05, 0.1, 0.5, 1.0, 2.0, 5.0},
|
||||
Type: gaugeMetric,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1555,8 +1553,7 @@ func getBucketTTFBDistributionMD() MetricDescription {
|
||||
Subsystem: ttfbSubsystem,
|
||||
Name: ttfbDistribution,
|
||||
Help: "Distribution of time to first byte across API calls per bucket",
|
||||
Type: histogramMetric,
|
||||
Buckets: []float64{0.01, 0.05, 0.1, 0.5, 1.0, 2.0, 5.0},
|
||||
Type: gaugeMetric,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user