cadvisor/container
Daniel Dao 8fdcc6d0ee
Allow raw container to retrieve process stats
Raw containers ( such as systemd services ) don't have main PID, so
before this change they weren't allowed to retrieve various stats from
the cgroup such as networking stats.

However, some process stats such as file descriptor counts or number of
processes are still valuable to those containers and we should be able
to retrieve them without depending on the main pid.

For example, on my laptop:

Before:
```
container_processes{id="/system.slice/containerd.service"} 0 1593123685900
```

After:
```
container_processes{id="/system.slice/containerd.service"} 4 1593123707235
```
2020-06-25 23:26:42 +01:00
..
common Exporting unexported struct 2020-04-23 20:47:16 +02:00
containerd libcontainer, cgroupv2: adapt to new API 2020-05-20 16:07:16 +02:00
crio libcontainer, cgroupv2: adapt to new API 2020-05-20 16:07:16 +02:00
docker libcontainer, cgroupv2: adapt to new API 2020-05-20 16:07:16 +02:00
libcontainer Allow raw container to retrieve process stats 2020-06-25 23:26:42 +01:00
raw Not collecting disk metric for root container when not requested to 2020-05-31 00:06:06 +02:00
systemd Switch to klog v2 2020-04-09 22:54:37 -04:00
testing Carefully fixing style (#2509) 2020-04-22 16:26:36 -07:00
container.go Cleanup unused code 2020-03-24 15:41:02 -04:00
factory_test.go Carefully fixing style (#2509) 2020-04-22 16:26:36 -07:00
factory.go Add Resctrl metrics. (#2563) 2020-06-19 14:11:24 -07:00