diff options
Diffstat (limited to 'middleware/proxy/metrics.go')
-rw-r--r-- | middleware/proxy/metrics.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/middleware/proxy/metrics.go b/middleware/proxy/metrics.go index f3112dd76..a2205c692 100644 --- a/middleware/proxy/metrics.go +++ b/middleware/proxy/metrics.go @@ -12,14 +12,14 @@ import ( var ( RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: middleware.Namespace, - Subsystem: subsystem, + Subsystem: "proxy", Name: "request_duration_milliseconds", Buckets: append(prometheus.DefBuckets, []float64{50, 100, 200, 500, 1000, 2000, 3000, 4000, 5000, 10000}...), Help: "Histogram of the time (in milliseconds) each request took.", - }, []string{"zone"}) + }, []string{"protocol", "zone"}) ) -// OnStartup sets up the metrics on startup. +// OnStartup sets up the metrics on startup. This is done for all proxy protocols. func OnStartup() error { metricsOnce.Do(func() { prometheus.MustRegister(RequestDuration) @@ -28,5 +28,3 @@ func OnStartup() error { } var metricsOnce sync.Once - -const subsystem = "proxy" |