aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-04-06 22:56:39 +0500
committerGitHub <noreply@github.com>2024-04-06 10:56:39 -0700
commitd42a04cceb51d06ae6ec0e80ca8675969018d98b (patch)
treef54efe78482ce76ff9d36a8c127dc9f01a675073 /weed/stats/metrics.go
parent7aa25c113736f9078b34d169b9bfcd4a677a65c4 (diff)
downloadseaweedfs-d42a04cceb51d06ae6ec0e80ca8675969018d98b.tar.xz
seaweedfs-d42a04cceb51d06ae6ec0e80ca8675969018d98b.zip
[s3] fix s3 test_multipart_resend_first_finishes_last (#5471)
* try fix s3 test https://github.com/seaweedfs/seaweedfs/pull/5466 * add error handler metrics * refactor * refactor multipartExt * delete bad entry parts
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index f61f68e08..83391f047 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -241,7 +241,13 @@ var (
Name: "request_total",
Help: "Counter of s3 requests.",
}, []string{"type", "code", "bucket"})
-
+ S3HandlerCounter = prometheus.NewCounterVec(
+ prometheus.CounterOpts{
+ Namespace: Namespace,
+ Subsystem: "s3",
+ Name: "handler_total",
+ Help: "Counter of s3 server handlers.",
+ }, []string{"type"})
S3RequestHistogram = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: Namespace,
@@ -292,6 +298,7 @@ func init() {
Gather.MustRegister(VolumeServerResourceGauge)
Gather.MustRegister(S3RequestCounter)
+ Gather.MustRegister(S3HandlerCounter)
Gather.MustRegister(S3RequestHistogram)
Gather.MustRegister(S3TimeToFirstByteHistogram)
}