Skip to content

Commit

Permalink
skip metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed May 23, 2024
1 parent 9094604 commit 81e7b1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eventindexer/pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (srv *Server) configureMiddleware(corsOrigins []string) {
func checkUserAgent(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// Skip check for /healthz
if c.Path() == "/healthz" {
if c.Path() == "/healthz" || c.Path() == "/metrics" {
return next(c)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-prover-health-check/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (srv *Server) configureMiddleware(corsOrigins []string) {
func checkUserAgent(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// Skip check for /healthz
if c.Path() == "/healthz" {
if c.Path() == "/healthz" || c.Path() == "/metrics" {
return next(c)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (srv *Server) configureMiddleware(corsOrigins []string) {
func checkUserAgent(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// Skip check for /healthz
if c.Path() == "/healthz" {
if c.Path() == "/healthz" || c.Path() == "/metrics" {
return next(c)
}

Expand Down

0 comments on commit 81e7b1b

Please sign in to comment.