Public | Automated Build

Last pushed: a year ago
Short Description
Small app checking an elasticsearch cluster health.
Full Description

POC for using ElasticSearch

Small application which checks the health of an AES cluster.

:warning: The AWS SDK for Go does not currently include support for ES data plane api, but the Signer is exposed since v1.2.0.

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

How to run

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.

Available endpoints:

localhost:8080/__health

Provides the standard FT output indicating the connectivity and the cluster's health.

localhost:8080/__health-details

Provides a detailed health status of the ES cluster.
It matches the response from elasticsearch-endpoint/_cluster/health

Docker Pull Command
Owner
coco