mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-19 04:26:34 +00:00
Fix issue with provider metrics
https://github.com/openfaas/faas-provider/pull/66 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
4
vendor/github.com/openfaas/faas-provider/metrics.go
generated
vendored
4
vendor/github.com/openfaas/faas-provider/metrics.go
generated
vendored
@ -53,7 +53,7 @@ func (hm *httpMetrics) InstrumentHandler(next http.Handler, pathOverride string)
|
||||
|
||||
defer func() {
|
||||
hm.RequestsTotal.With(
|
||||
prometheus.Labels{"code": strconv.Itoa(ww.StatusCode),
|
||||
prometheus.Labels{"code": strconv.Itoa(ww.Status()),
|
||||
"method": r.Method,
|
||||
"path": path,
|
||||
}).
|
||||
@ -62,7 +62,7 @@ func (hm *httpMetrics) InstrumentHandler(next http.Handler, pathOverride string)
|
||||
|
||||
defer func() {
|
||||
hm.RequestDurationHistogram.With(
|
||||
prometheus.Labels{"code": strconv.Itoa(ww.StatusCode),
|
||||
prometheus.Labels{"code": strconv.Itoa(ww.Status()),
|
||||
"method": r.Method,
|
||||
"path": path,
|
||||
}).
|
||||
|
Reference in New Issue
Block a user