Calculating Docker Metrics Usage
Does anyone know how Docker calculates its memory usage, cpu usage and network/o usage? i am aware that some metrics can be obtained from the cgroup but upon calculating CPU usage and Memory usage, i realise that my metrics do not tally with the metrics shown when i run docker stats. can anyone help me with this?