Revert "Fix: Change TTFB metric type to histogram (#20999)"

This reverts commit 8d223e07fb.
This commit is contained in:
Harshavardhana
2025-04-23 13:56:18 -07:00
parent 2d8ba15b9e
commit 2780778c10
2 changed files with 5 additions and 33 deletions

View File

@@ -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,
}
}