Hello Team,
We are using docker deployment of open source BI Helical Insight 6.1. Is there any automated way to detect if a Docker container (or service running inside it) goes down and get notified?
Thanks,
Vema.
Hello Team,
We are using docker deployment of open source BI Helical Insight 6.1. Is there any automated way to detect if a Docker container (or service running inside it) goes down and get notified?
Thanks,
Vema.
Hello,
Yes, there are multiple ways to monitor Docker containers and get alerts when they go down. Below are some commonly used approaches based on complexity and use case.
Use a cron job or script to periodically check:
curl -sf http://localhost:8080/v1/info || echo “Service is DOWN” | mail -s “Alert” you@company.com
If your service inside Docker is managed via systemd:
systemctl status your-service
Restart=on-failure
RestartSec=10
OnFailure=alert-service@%n.service
Automatic restart + alert
Triggers only on real failure
http://:8080/metrics
If you’re using Docker, this is the cleanest approach. Helical Insight use this method.
healthcheck:
test: [“CMD”, “curl”, “-f”, “http://localhost:8080/v1/info”]
interval: 30s
timeout: 5s
retries: 3
healthyunhealthydocker ps
Native Docker solution
Works seamlessly with orchestration tools
No need of external alerting for notifications
Thank You,
Helical Insight.