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 endpoint #71

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Add _health endpoint #71

merged 3 commits into from
Jan 10, 2024

Conversation

cooldracula
Copy link
Contributor

This adds a basic healthcheck endpoint at /_health. At the moment, it only shows that the server is up and running and handling requests. I think this is okay, though, as the event service has more detailed metrics, and existing alerts from these, to give a more detailed look at the application's health. This endpoint can be used as a simple uptime alert to check the status of the service itself.

I tried to follow the pattern of the existing code, and so wrapped the check as a json response using boreq's rest library.

@cooldracula cooldracula requested a review from mplorentz January 10, 2024 09:59
Copy link
Member

@mplorentz mplorentz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@cooldracula cooldracula merged commit 27d10a5 into main Jan 10, 2024
2 checks passed
@cooldracula cooldracula deleted the healthcheck branch January 10, 2024 21:27
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.

3 participants