diff options
| author | zzq09494 <zzq09494@ly.com> | 2022-06-16 13:21:25 +0800 |
|---|---|---|
| committer | zzq09494 <zzq09494@ly.com> | 2022-06-16 13:21:25 +0800 |
| commit | 62f74f5e3cce0668478c179f81fd1a9c5916e455 (patch) | |
| tree | fa6b2f17c664c5aabfe5a234431ab506d4f64f8f /weed/stats/metrics.go | |
| parent | 097a12dfb488236b8accda8e868b2c5d4b64b14e (diff) | |
| download | seaweedfs-62f74f5e3cce0668478c179f81fd1a9c5916e455.tar.xz seaweedfs-62f74f5e3cce0668478c179f81fd1a9c5916e455.zip | |
add bucket label to s3 prometheus metrics
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go index 207b37c81..f0b810608 100644 --- a/weed/stats/metrics.go +++ b/weed/stats/metrics.go @@ -173,7 +173,8 @@ var ( Subsystem: "s3", Name: "request_total", Help: "Counter of s3 requests.", - }, []string{"type", "code"}) + }, []string{"type", "code", "bucket"}) + S3RequestHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "SeaweedFS", @@ -181,7 +182,7 @@ var ( Name: "request_seconds", Help: "Bucketed histogram of s3 request processing time.", Buckets: prometheus.ExponentialBuckets(0.0001, 2, 24), - }, []string{"type"}) + }, []string{"type", "bucket"}) ) func init() { |
