cpu

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuPlugin

type CpuPlugin struct {
	config.InternalConfig
	Instances []*Instance `toml:"instances"`
}

func (*CpuPlugin) GetInstances

func (p *CpuPlugin) GetInstances() []plugins.Instance

func (*CpuPlugin) RegisterDiagnoseTools added in v0.10.0

func (p *CpuPlugin) RegisterDiagnoseTools(registry *diagnose.ToolRegistry)

type CpuUsageCheck

type CpuUsageCheck struct {
	WarnGe     float64 `toml:"warn_ge"`
	CriticalGe float64 `toml:"critical_ge"`
}

type Instance

type Instance struct {
	config.InternalConfig

	CpuUsage    CpuUsageCheck    `toml:"cpu_usage"`
	LoadAverage LoadAverageCheck `toml:"load_average"`
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type LoadAverageCheck

type LoadAverageCheck struct {
	WarnGe     float64 `toml:"warn_ge"`
	CriticalGe float64 `toml:"critical_ge"`
	Period     string  `toml:"period"`
}

Jump to

Keyboard shortcuts

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