aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index 454b35d7a..dda4d95e5 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -226,6 +226,15 @@ var (
Help: "Bucketed histogram of s3 request processing time.",
Buckets: prometheus.ExponentialBuckets(0.0001, 2, 24),
}, []string{"type", "bucket"})
+ S3TimeToFirstByteHistogram = prometheus.NewHistogramVec(
+ prometheus.HistogramOpts{
+ Namespace: Namespace,
+ Subsystem: "s3",
+ Name: "time_to_first_byte_millisecond",
+ Help: "Bucketed histogram of s3 time to first byte request processing time.",
+ Buckets: prometheus.ExponentialBuckets(0.001, 2, 27),
+ }, []string{"type", "bucket"})
+
)
func init() {
@@ -258,6 +267,7 @@ func init() {
Gather.MustRegister(S3RequestCounter)
Gather.MustRegister(S3RequestHistogram)
+ Gather.MustRegister(S3TimeToFirstByteHistogram)
}
func LoopPushingMetric(name, instance, addr string, intervalSeconds int) {