add status code in S3RequestCounter

This commit is contained in:
Konstantin Lebedev
2020-10-01 00:59:39 +05:00
parent 79ab10e300
commit 68463e92c1
2 changed files with 24 additions and 7 deletions

View File

@@ -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", "code"})
S3RequestHistogram = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: "SeaweedFS",