diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-09-30 13:24:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-30 13:24:08 -0700 |
| commit | ed170d8fe6f4d067abcbc16fc09ad497ab908f4a (patch) | |
| tree | 8697b302880b822d795e4e583eff6a9375ffe989 /weed/stats/metrics.go | |
| parent | 79ab10e3007f95b099f15d0ae80070562bc08eef (diff) | |
| parent | 86329bbf2be4a8fdf3acdcf58d9fe0b147dbdfd4 (diff) | |
| download | seaweedfs-ed170d8fe6f4d067abcbc16fc09ad497ab908f4a.tar.xz seaweedfs-ed170d8fe6f4d067abcbc16fc09ad497ab908f4a.zip | |
Merge pull request #1502 from kmlebedev/s3_stat_statuscode
add status code in S3RequestCounter
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go index d930caf0f..bc3cff0d0 100644 --- a/weed/stats/metrics.go +++ b/weed/stats/metrics.go @@ -16,7 +16,7 @@ import ( ) var ( - Gather = prometheus.NewRegistry() + Gather = prometheus.NewRegistry() FilerRequestCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ @@ -99,7 +99,7 @@ var ( Subsystem: "s3", Name: "request_total", Help: "Counter of s3 requests.", - }, []string{"type"}) + }, []string{"type", "statusCode"}) S3RequestHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "SeaweedFS", |
