diff options
| author | chrislu <chris.lu@gmail.com> | 2023-08-21 09:47:36 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-08-21 09:47:36 -0700 |
| commit | c45665eb97778e3abc6c14e6bdc96f2360129e53 (patch) | |
| tree | e0179d9f465d4710036774835cc6ab7c22afd091 /weed/stats/metrics.go | |
| parent | 01d70c21f30988bffa37ffdcb6b80f1646293390 (diff) | |
| parent | 88fca2b0da66c8753309b9d1a6d419f4184a3f44 (diff) | |
| download | seaweedfs-c45665eb97778e3abc6c14e6bdc96f2360129e53.tar.xz seaweedfs-c45665eb97778e3abc6c14e6bdc96f2360129e53.zip | |
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 10 |
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) { |
