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

chore(ops): setup a healthcheck engine #151

Merged
merged 2 commits into from
Jun 25, 2020
Merged

chore(ops): setup a healthcheck engine #151

merged 2 commits into from
Jun 25, 2020

Conversation

danirod
Copy link
Member

@danirod danirod commented Jun 25, 2020

This commit installs an HTTP server that will be used with monitoring and metrics endpoints that provide debug information as well as server status over a programmatic interface.

It is designed to deprecate the current interface of commands being thrown over the #server-status channel.

The first endpoint added provides both a binary healthcheck that will yield whether the server is ready or not, as well as the average ping for the latest heartbeats sent through the websocket. Because the metrics system can now retrieve the average ping over the metrics server, this commit also removes the !ping command.

Note that the /healthcheck endpoint does not provide metrics for RTT, which is OK.

Fixes #36

Using /healthcheck, a text string is served over an HTTP connection
containing the current ping if the server is connected. If the server is
not online, the request returns a status code of HTTP 503.
Do not deploy this commit until the new metrics can be ingested. It will
remove the !ping command expecting that the metrics can now be poked
using the HTTP server added in the previous commit, rather than having a
process sending the `!ping` command over the #server-status channel
every 5 minutes.
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.

Remove !ping and replace it with a real healthcheck
1 participant