Closed dkeysil closed 6 months ago
This is calculation function from the docker library - https://github.com/moby/moby/blob/eb131c5383db8cac633919f82abad86c99bffbe5/cli/command/container/stats_helpers.go#L175-L188
It calculates CPU usage as percentage
Right now this metric (resources.docker.cpu) is not really helpful because cpu.TotalUsage is always increasing.
resources.docker.cpu
cpu.TotalUsage
This is calculation function from the docker library - https://github.com/moby/moby/blob/eb131c5383db8cac633919f82abad86c99bffbe5/cli/command/container/stats_helpers.go#L175-L188
It calculates CPU usage as percentage
Right now this metric (
resources.docker.cpu
) is not really helpful becausecpu.TotalUsage
is always increasing.