Open Colstuwjx opened 6 years ago
The writable layer disk usage is already reported for containers. Image disk usage is a seperate concept from container usage, as images can be shared between many containers. It looks like we have some image functionality added, as I can see there is an API type for docker images But it looks like it is only used for the UI. The only reasons I can think of that this isnt exported in the versioned APIs or prometheus is that it is docker specific, and adds additional API calls to the docker daemon, which can easily be overwhelmed. Any implementation would need to be disabled by default.
How are you using cAdvisor? Are you planning to use the Json API directly, or do you plan to use prometheus, or another storage plugin?
Yeah, I'm using the /metrics
exposed by cadvisor and collect them into prometheus. I think image size or total container disk usage in the other word, is really needed for container disk usage monitoring.
+1 really need it, because someone who brings their project into docker always leave log file inside docker.
As I known, docker offered
docker ps -s
to collect image and writeable layer disk usageCould us support offer these metrics?