Small application which checks the health of an AES cluster.
The taken approach to access ES:
- Use the v4.Signer provided by the amazon-go-sdk
- Create an HTTP client wrapping all the requests with Amazon signer
- Use https://github.com/olivere/elastic library to any ES request, after passing in the above created client
go get -u github.com/Financial-Times/elasticsearch-mvp
go build
./elasticsearch-mvp --aws-access-key="{access key}" --aws-secret-access-key="{secret key}"
It is also possible to provide the elasticsearch endpoint, region and the port you expect the app to run on.
Provides the standard FT output indicating the connectivity and the cluster's health.
Provides a detailed health status of the ES cluster. It matches the response from elasticsearch-endpoint/_cluster/health