disk

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskPlugin

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

func (*DiskPlugin) GetInstances

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

func (*DiskPlugin) RegisterDiagnoseTools added in v0.10.0

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

type InodeUsageCheck

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

type Instance

type Instance struct {
	config.InternalConfig

	MountPoints       []string `toml:"mount_points"`
	IgnoreMountPoints []string `toml:"ignore_mount_points"`
	IgnoreFSTypes     []string `toml:"ignore_fs_types"`

	SpaceUsage SpaceUsageCheck `toml:"space_usage"`
	InodeUsage InodeUsageCheck `toml:"inode_usage"`
	Writable   WritableCheck   `toml:"writable"`

	Concurrency   int             `toml:"concurrency"`
	GatherTimeout config.Duration `toml:"gather_timeout"`
	// 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 SpaceUsageCheck

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

type WritableCheck

type WritableCheck struct {
	Severity string `toml:"severity"`
	TestFile string `toml:"test_file"`
}

Jump to

Keyboard shortcuts

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