<p>I'm using Kubernetes in a Google Container Engine cluster and I can see in the Stackdriver logs that one of the Pods is falling over and automatically restarting because of an OutOfMemory exception.</p>

<p>Is there any standard way of monitoring these events?</p>

<p>I'm using <a href="https://github.com/kubernetes/heapster" rel="nofollow noreferrer">Heapster</a> and it doesn't seem to provide any metrics about Pods shutting down and restarting.</p>

<p>According to our IT Sysadmin, most of the current solutions for real-time monitoring and alerting on pods failures are currently unstable or very lackluster.</p>

<p>We ended up developing a small script which uses the Slack.com webservice for mail notifications and such.</p>

<p>I am sorry if my answer is not a ready-to-use one click solution :-) </p>

<p>This is a real feedback from our current experience and searches.</p>

<p>I expect things will move fast in the near future on that topic!</p>

<p>Our code (simple solution for effective results):</p>

<p><a href="https://github.com/OpenSensee/K8SWatch" rel="nofollow noreferrer">https://github.com/OpenSensee/K8SWatch</a></p>
