Update prometheus.go
This commit is contained in:
parent
7ed2272d1d
commit
109956ca66
@ -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"},
|
||||||
|
Loading…
Reference in New Issue
Block a user