diff --git a/gateway/handlers/notifiers.go b/gateway/handlers/notifiers.go index ff57fbf7..927cacf7 100644 --- a/gateway/handlers/notifiers.go +++ b/gateway/handlers/notifiers.go @@ -25,7 +25,8 @@ type PrometheusServiceNotifier struct { func (psn PrometheusServiceNotifier) Notify(method string, URL string, originalURL string, statusCode int, duration time.Duration) { code := fmt.Sprintf("%d", statusCode) path := urlToLabel(URL) - psn.ServiceMetrics.Counter.WithLabelValues(code, method, path).Inc() + + psn.ServiceMetrics.Counter.WithLabelValues(method, path, code).Inc() psn.ServiceMetrics.Histogram.WithLabelValues(method, path, code).Observe(duration.Seconds()) }