santthosh / aws-es-kibana

AWS ElasticSearch Kibana Proxy
Apache License 2.0
325 stars 133 forks source link

Add support for health endpoint #21

Closed bacoboy closed 6 years ago

bacoboy commented 7 years ago

This change adds an optional health endpoint path which will return a 200 status code. This is useful for environments where you might be deploying this as a Docker service behind a service discovery mechanism or load balancer which has a health check.

You can set either the -H flag or specify the HEALTH_PATH environment variable as in this example:

HEALTH_PATH=/health aws-es-kibana

When specified, you’ll see this additional console output:

Health endpoint enabled at http://127.0.0.1:9200/health

Thanks to @williamhaley for the assist!

I also had to update the AWS-SDK to add support for ECS task IAM roles.

bacoboy commented 7 years ago

Anything I can do to move this PR along?

mente commented 7 years ago

I double for having it. It looks relatively simple as long as conflicts are resolved

bacoboy commented 7 years ago

Up to date now. I also bumped the sdk version because ECS IAM credentials aren't supported in the version you were using.