CoMPeL is a framework which Monitors resource utilization of a container, predicts resource utilization and does live migration of containers to achieve efficient resource utilization. This Repository consists of monitoring module.
0
stars
0
forks
source link
Gathering system metrics each container and system to calculate CPU,Disk,BLkio percentage #8
Important tasks
Later 3.Blkio
Description
Calculating CPU and Disk % can be done from these 3 resources
How to use run metrics https://docs.docker.com/engine/admin/runmetrics/ Found it here for container named container1
/sys/fs/cgroup/memory/user.slice/container1/memory.stat
Explaining CPU % in docker http://www.jcham.com/2016/02/09/calculating-cpu-percent-and-memory-percentage-for-containers/
Using gopsutils. https://github.com/shirou/gopsutil