Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DockerMeasuredCPUStats = []string{"Throttled Periods", "Throttled Time", "Percent"} // cgroup-v2 only exposes a subset of memory stats DockerCgroupV1MeasuredMemStats = []string{"RSS", "Cache", "Swap", "Usage", "Max Usage"} DockerCgroupV2MeasuredMemStats = []string{"Cache", "Swap", "Usage"} )
Functions ¶
func CalculateCPUPercent ¶
func DockerStatsToTaskResourceUsage ¶
func DockerStatsToTaskResourceUsage(s *docker.Stats) *cstructs.TaskResourceUsage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.