This is a small project to monitor a ElasticSearch cluster health check. Basically it just query the health check url and search by the string green
from the body response.
In order to run this project you must have:
- Golang
- Serverless
- AWS Credentials
Make sure to update your serverless.yml
:
vpc:
securityGroupIds:
- sg-000000
subnetIds:
- subnet-00000
- subnet-00000
OBS: This section is only required if you need to run in a specif VPC
ES_ENDPOINT: "http://your-elastic-search-url:9200/_cat/health"
Set to your ES url.
Make the app build:
make build
Deploying to aws lambda:
make clean deploy
- Integrate with slack
- Integrate with pagerduty