Rename prometheus metric prefix from go_micro_x to micro_x

This commit is contained in:
Nikolay Bondarenko 2019-01-25 18:06:08 +03:00 committed by Vasiliy Tolstov
parent 68434feb25
commit 84c2b448b9

View File

@ -9,7 +9,7 @@ import (
func NewHandlerWrapper() server.HandlerWrapper { func NewHandlerWrapper() server.HandlerWrapper {
opsCounter := prometheus.NewCounterVec( opsCounter := prometheus.NewCounterVec(
prometheus.CounterOpts{ prometheus.CounterOpts{
Name: "go_micro_requests_total", Name: "micro_requests_total",
Help: "How many go-miro requests processed, partitioned by method and status", Help: "How many go-miro requests processed, partitioned by method and status",
}, },
[]string{"method", "status"}, []string{"method", "status"},
@ -17,7 +17,7 @@ func NewHandlerWrapper() server.HandlerWrapper {
timeCounter := prometheus.NewSummaryVec( timeCounter := prometheus.NewSummaryVec(
prometheus.SummaryOpts{ prometheus.SummaryOpts{
Name: "go_micro_request_durations_microseconds", Name: "micro_request_durations_microseconds",
Help: "Service method request latencies in microseconds", Help: "Service method request latencies in microseconds",
}, },
[]string{"method"}, []string{"method"},