Skip to content

Commit

Permalink
Move prometheus metrics endpoint (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Oct 27, 2024
1 parent b013f9d commit 554c478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 554c478

Please sign in to comment.