cadvisor/container/libcontainer
Euan Kemp 587691c7f3 libcontainer: ignore nil cpustats
Cadvisor can inotify watch for new cgroups. This leads to it racing
fairly tightly with cgroup creation... So tightly, that sometimes
cpustats are nil.

The runc library code we call
(https://github.com/opencontainers/runc/blob/v1.0.0-rc4/libcontainer/cgroups/fs/apply_raw.go#L179-L182)
doesn't actaully consider this an error, so we have to handle that
scenario ourselves.

This fixes https://github.com/google/cadvisor/issues/1765
2017-10-20 13:08:23 -07:00
..
testdata Add udp and udp6 network statistics 2017-04-10 20:41:51 +01:00
helpers_test.go libcontainer: use real number of CPUs for usage 2017-08-30 14:26:26 -07:00
helpers.go libcontainer: ignore nil cpustats 2017-10-20 13:08:23 -07:00