From 770a30fe1c2a525cbbf4d4a2e80c24f345084fd7 Mon Sep 17 00:00:00 2001 From: Maciej Winnicki Date: Mon, 14 May 2018 16:18:07 +0200 Subject: [PATCH] Move Promethues metrics endpoint under /v1/ prefix. Closes #423 (#426) --- httpapi/httpapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpapi/httpapi.go b/httpapi/httpapi.go index 154a6e6..e0f23a0 100644 --- a/httpapi/httpapi.go +++ b/httpapi/httpapi.go @@ -30,7 +30,7 @@ type SubscriptionsResponse struct { // RegisterRoutes register HTTP API routes func (h HTTPAPI) RegisterRoutes(router *httprouter.Router) { router.GET("/v1/status", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {}) - router.Handler("GET", "/metrics", promhttp.Handler()) + router.Handler("GET", "/v1/metrics", promhttp.Handler()) router.GET("/v1/spaces/:space/functions", h.listFunctions) router.GET("/v1/spaces/:space/functions/:id", h.getFunction)