Skip to content

Type Alias: ContainerCPUStats ​

ContainerCPUStats = object

A container's CPU use at one moment (ContainerStats.cpu_stats). The CPU percentage of docker stats is the growth of cpu_usage.total_usage divided by the growth of system_cpu_usage between two readings, multiplied by online_cpus and 100.

Properties ​

cpu_usage ​

cpu_usage: ContainerCPUUsage

The container's cumulated CPU time.


online_cpus ​

online_cpus: number

The number of host CPUs online.


system_cpu_usage ​

system_cpu_usage: number

The host's cumulated CPU time, all CPUs added, in nanoseconds (Linux only).


throttling_data ​

throttling_data: ContainerThrottlingData

How the container was throttled by its CPU limit.

Released under the MIT License.