Fix metric names
This commit is contained in:
parent
03525cdad8
commit
e7074257b1
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user