How can I alert for container restarted?

后端 未结 3 1554
渐次进展
渐次进展 2020-12-28 17:17

I like to monitor the containers using Prometheus and cAdvisor so that when a container restart, I get an alert. I wonder if anyone have sample Prometheus alert for this.

3条回答
  •  执笔经年
    2020-12-28 18:02

    If you are running in Kubernetes you can deploy the kube-state-metrics container that publishes the restart metric for pods: https://github.com/kubernetes/kube-state-metrics

提交回复
热议问题