draganm / missing-container-metrics

Prometheus exporter for container metrics cAdvisor won't give you
MIT License
171 stars 31 forks source link

container_restarts does not increment with containerd #25

Open oscar-martin opened 1 year ago

oscar-martin commented 1 year ago

container_restarts does not increment with containerd. The same test executed in a cluster with docker works fine.

After looking at the code, I see there is no call to start() method in the containerd's handle, so unless I am missing something, it will never increment the aforementioned counter.

P.S. For testing, I am running this (as suggested here):

</dev/zero head -c 1000m | tail

I am running version 0.21.0.