From 554c4788b45e2d89ff4d8ce3d57c1e928b524d11 Mon Sep 17 00:00:00 2001 From: Artem Poltorzhitskiy Date: Sun, 27 Oct 2024 16:47:01 +0100 Subject: [PATCH] Move prometheus metrics endpoint (#58) --- cmd/api/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/api/init.go b/cmd/api/init.go index 04d751c..52eaadd 100644 --- a/cmd/api/init.go +++ b/cmd/api/init.go @@ -365,7 +365,7 @@ func initHandlers(ctx context.Context, e *echo.Echo, cfg Config, db postgres.Sto } if cfg.ApiConfig.Prometheus { - v1.GET("/metrics", echoprometheus.NewHandler()) + e.GET("/metrics", echoprometheus.NewHandler()) } v1.GET("/swagger/*", echoSwagger.WrapHandler)