Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskIOStats ¶
type NetIOStats ¶
type WorkerStats ¶
type WorkerStats struct {
CPUUsagePercent float32
MemUsagePercent float32
Load1Min float32
IOWaitPercent float32
Disks []DiskUsage
DiskIO DiskIOStats
NetIO NetIOStats
NumCPUs int32
}
func CollectWorkerStats ¶
func CollectWorkerStats() (*WorkerStats, error)
func (*WorkerStats) ToProto ¶
func (ws *WorkerStats) ToProto() *pb.WorkerStats
ToProto converts WorkerStats to the protobuf pb.WorkerStats
Click to show internal directories.
Click to hide internal directories.