Update prometheus.go

This commit is contained in:
Asim Aslam 2019-01-25 16:11:45 +00:00 committed by Vasiliy Tolstov
parent 7ed2272d1d
commit 109956ca66

View File

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