Join GitHub today
Docker RestartCount Stats #1647
Docker provides a RestartCount stats.
This stats is used to monitor how many times a container was restarted, and this count increase may represent some kind of problem (like an OOM kill).
It would be great if cAdvisor collects this metric also, so we can put this on Prometheus and alert on some unexpected problem.
Actually it exposes through API and not through cgroups. I was trying to search were in the code cAdvisor gets its data.
I don't think it's limited to cgroups, because of the 'Labels' and Image retrieval, but I couldn't figure out how to add also the restartCount metrics :)
Something probably specified here: