Help us shape the future of Go! Take the 2026 Go Developer Survey

workerstats

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskIOStats

type DiskIOStats struct {
	ReadBytesTotal  int64
	WriteBytesTotal int64
	ReadBytesRate   float32
	WriteBytesRate  float32
}

type DiskUsage

type DiskUsage struct {
	DeviceName   string
	UsagePercent float32
}

type NetIOStats

type NetIOStats struct {
	RecvBytesTotal int64
	SentBytesTotal int64
	RecvBytesRate  float32
	SentBytesRate  float32
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL