adhuri / Compel-Monitoring

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

Open adhuri opened 7 years ago

adhuri commented 7 years ago

Important tasks

  1. Memory %
  2. CPU percentage %

Later 3.Blkio

Description

Calculating CPU and Disk % can be done from these 3 resources

  1. 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

  2. Explaining CPU % in docker http://www.jcham.com/2016/02/09/calculating-cpu-percent-and-memory-percentage-for-containers/

  3. Using gopsutils. https://github.com/shirou/gopsutil