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

Elasticsearch health check #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

alesr
Copy link
Contributor

@alesr alesr commented Jul 9, 2023

This PR introduces a health check for Elasticsearch.

The checker functions by making an HTTP request to the /_cluster/health endpoint and checking that the status field included in the response is green.

Should the Elasticsearch API return a non-200 HTTP status code or if the server's health status is anything other than green, the health check will be marked as failed.

In terms of SSL configuration, if a path to an SSL certificate is supplied in the configuration, the checker will use this certificate for the HTTPS request. Conversely, if no certificate is provided, the checker will proceed with the request using an insecure connection.

@alesr alesr marked this pull request as ready for review July 9, 2023 13:49
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.

None yet

1 participant