Relavent changes (in order) CAdvisor:
- https://github.com/google/cadvisor/commit/647224c95ab4362c9eda5607059060e1acf6d84a
- https://github.com/google/cadvisor/commit/c37d048e1bc8f9f0195f49c35bcd7d51e28732a1
Needed tools: https://github.com/jthornber/thin-provisioning-tools (but also device-mapper)
Installing thin-provisioning-tools with whats availble in the image doesn't work as you get v5.6
root@20b1630c440e:/opt/dataloop# apt-get update
root@20b1630c440e:/opt/dataloop# apt-get install thin-provisioning-tools
root@20b1630c440e:/opt/dataloop# pdata_tools thin_ls
Unknown command 'thin_ls'
Usage: <command> <args>
commands:
cache_check
cache_dump
cache_metadata_size
cache_restore
cache_repair
era_check
era_dump
era_invalidate
era_restore
thin_check
thin_delta
thin_dump
thin_metadata_size
thin_restore
thin_repair
thin_rmap
You can install this one ubuntu 16.10's version https://launchpad.net/ubuntu/+source/thin-provisioning-tools and it will unblock CAdvisor from starting You will however start running into
E1104 02:22:36.185250 20 thin_pool_watcher.go:61] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exec: "dmsetup": executable file not found in $PATH
E1104 02:22:51.185709 20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exec: "dmsetup": executable file not found in $PATH
Which you can fix by apt-get install dmsetup
, but then
E1104 06:17:52.696345 20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exit status 1
E1104 06:18:07.700278 20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exit status 1
because
root@be1b8a75ad6f:/# dmsetup status
/dev/mapper/control: open failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper (unknown version) and kernel driver (unknown version).
Command failed
At this point, you actually have semi working stats in dataloop. I was able to get network, cpu, and memory stats.