stefanprodan / swarmprom

Docker Swarm instrumentation with Prometheus, Grafana, cAdvisor, Node Exporter and Alert Manager
MIT License
1.87k stars 734 forks source link

Monitoring Container Restarts? #71

Open geekdave opened 5 years ago

geekdave commented 5 years ago

Hey, thanks for this project! Looking into swarm health checks on containers, which will restart the container if health check fails. But when this happens I'd like to track it with Prometheus so that I can spot trends in unstable containers. Is there any way to do this?

geekdave commented 5 years ago

I found that there is a "failed health checks" metric. I guess I can assume that this should correlate with restarts?