Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health (healthz) endpoint (Feature Request) #36

Open
brianramseyau opened this issue Sep 6, 2024 · 0 comments
Open

Add health (healthz) endpoint (Feature Request) #36

brianramseyau opened this issue Sep 6, 2024 · 0 comments

Comments

@brianramseyau
Copy link

I'm currently trying to get this going in a helm chart for my use case, and it's considered best practise to have a health check endpoint in Kubernetes for readiness/liveness

Ideally, it would have a blank 200 code return for the HTTP path of /healthz.

I really don't know much about go, but my assumption after a quick google is adding the below (or similar) to this file: internal/http/http.go

Such as:

  e.GET("/healthz", func(c echo.Context) error {
	  return c.String(http.StatusOK, "Ok")
  })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant