mem

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	config.InternalConfig

	MemoryUsage MemoryUsageCheck `toml:"memory_usage"`
	SwapUsage   SwapUsageCheck   `toml:"swap_usage"`
}

func (*Instance) Gather

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

func (*Instance) Init

func (ins *Instance) Init() error

type MemPlugin

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

func (*MemPlugin) GetInstances

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

func (*MemPlugin) RegisterDiagnoseTools added in v0.10.0

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

type MemoryUsageCheck

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

type SwapUsageCheck

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

Jump to

Keyboard shortcuts

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