From e7074257b1deff9795c6a0daca60d79e4f2ea632 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 28 Oct 2021 16:41:01 +0200 Subject: [PATCH] Fix metric names --- web/middleware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/middleware.go b/web/middleware.go index f358b23..6277e9f 100644 --- a/web/middleware.go +++ b/web/middleware.go @@ -59,7 +59,7 @@ func (mm *MetricsMiddleware) handler(next http.Handler) http.Handler { func NewMetricsMiddleware() func(next http.Handler) http.Handler { mm := &MetricsMiddleware{} mm.requests = prometheus.NewCounterVec(prometheus.CounterOpts{ - Name: "filmblogg_http_requests_total", + Name: "apiary_http_requests_total", Help: "Total requests processed.", ConstLabels: prometheus.Labels{"service": "http"}, }, @@ -68,7 +68,7 @@ func NewMetricsMiddleware() func(next http.Handler) http.Handler { mm.latency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ - Name: "filmblogg_http_request_duration_milliseconds", + Name: "apiary_http_request_duration_milliseconds", Help: "Request processing time.", ConstLabels: prometheus.Labels{"service": "http"}, Buckets: []float64{100, 500, 1500},