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 /healthz endpoint to server #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ItalyPaleAle
Copy link

This PR adds a tiny handler for /healthz, which responds with an empty response and 204 status code. This is very helpful to set up healthchecks (for example, liveness probes), in a container orchestrator or proxy.

I saw that 2 years ago, someone started working on health endpoints in #159, but that PR seems to have been abandoned.

This PR is a lot simpler in the approach as it always responds with a 204 status code, without performing any actual check: it just asserts that rest-server is running and healthy.

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

Successfully merging this pull request may close these issues.

1 participant