disk

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package disk tracks the disk usage of all the mount points specified in the configuration.

Index

Constants

View Source
const Name = "disk"

Name is the ID of the disk component.

View Source
const SubSystem = "disk"

SubSystem is the Prometheus subsystem used by disk metrics.

Variables

This section is empty.

Functions

func HasBeyondEndOfDevice added in v0.6.0

func HasBeyondEndOfDevice(line string) bool

HasBeyondEndOfDevice returns true if the line indicates an access beyond the end of a device.

func HasBufferIOError added in v0.6.0

func HasBufferIOError(line string) bool

HasBufferIOError returns true if the line indicates a buffer I/O error.

func HasFilesystemReadOnly added in v0.6.0

func HasFilesystemReadOnly(line string) bool

HasFilesystemReadOnly returns true if the line indicates the filesystem was remounted read-only.

func HasNVMeDeviceDisabled added in v0.6.0

func HasNVMeDeviceDisabled(line string) bool

HasNVMeDeviceDisabled returns true if the line indicates an NVMe device was disabled.

func HasNVMePathFailure added in v0.6.0

func HasNVMePathFailure(line string) bool

HasNVMePathFailure returns true if the line indicates an NVMe path failure.

func HasNVMeTimeout added in v0.6.0

func HasNVMeTimeout(line string) bool

HasNVMeTimeout returns true if the line indicates an NVMe controller timeout.

func HasRAIDArrayFailure added in v0.6.0

func HasRAIDArrayFailure(line string) bool

HasRAIDArrayFailure returns true if the line indicates a RAID array failure.

func HasSuperblockWriteError added in v0.6.0

func HasSuperblockWriteError(line string) bool

HasSuperblockWriteError returns true if the line indicates a superblock write error.

func Match added in v0.5.0

func Match(line string) (eventName string, message string)

Match returns the first disk-related kernel message match for the given log line.

func New

func New(gpudInstance *components.GPUdInstance) (components.Component, error)

New creates a disk component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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