'What is the best way to send docker notifications to Elasticsearch?
We have docker running docker containers on different servers and we want to know when docker container is crashing. We have Elasticsearch stack with Kibana. So we think about the following pipeline:
- docker container stops
- docker sends alert to Elasticsearch
- Elasticsearch sends alert to our Slack channel
What is the best way to do the first part, when docker sends alert to elasticsearch?
Thank you
Solution 1:[1]
The industry standard for alerting like that is to have an external watchdog service (Nagios, Kuma, etc) which would periodically run health check (a GET /_cluster/health
request) and check that the cluster status is not "red". If the request fails or it's red - ping your Slack, PaderDuty, etc.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ilvar |