Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OverallMetrics ¶
type OverallMetrics struct { TotalCPU float64 TotalMem float64 TotalNet netStat TotalBlk blkStat PerContainer []PerContainerMetrics }
OverallMetrics holds metrics for all existing containers
func GetOverallMetrics ¶
GetOverallMetrics provides metrics about all running containers in the form of OverallMetrics structs
type PerContainerMetrics ¶
type PerContainerMetrics struct { // Metrics common for Overall and per container ID string Image string Name string Status string State string CPU float64 Mem float64 Net netStat Blk blkStat // Metrics specific to per container Pid string NetInfo []netInfo PerCPU []string PortMap []portMap Mounts []mountInfo Procs []procInfo }
PerContainerMetrics holds metrics for a given container
func GetContainerMetrics ¶
func GetContainerMetrics(ctx context.Context, cli *client.Client, cid string) (PerContainerMetrics, error)
GetContainerMetrics provides per container metrics in the form of PerContainerMetrics Structs.
Click to show internal directories.
Click to hide internal directories.