memory

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

Documentation

Overview

Package memory tracks the memory usage of the host.

Index

Constants

View Source
const Name = "memory"

Name is the ID of the memory component.

View Source
const OOMEventName = "OOM"

OOMEventName is emitted when the kernel reports an out-of-memory kill event.

View Source
const SubSystem = "memory"

SubSystem is the Prometheus subsystem name for memory metrics.

Variables

This section is empty.

Functions

func New

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

New creates the memory component.

Types

type OOMInstance added in v0.5.1

type OOMInstance struct {
	// process id of the killed process
	Pid int
	// the name of the killed process
	ProcessName string
	// the absolute name of the container that OOMed
	ContainerName string
	// the absolute name of the container that was killed
	// due to the OOM.
	VictimContainerName string
	// the constraint that triggered the OOM.  One of CONSTRAINT_NONE,
	// CONSTRAINT_CPUSET, CONSTRAINT_MEMORY_POLICY, CONSTRAINT_MEMCG
	Constraint string
}

OOMInstance contains information related to an OOM kill instance.

func (*OOMInstance) Summary added in v0.5.1

func (o *OOMInstance) Summary() string

Summary returns a human-readable summary of the OOM event.

Jump to

Keyboard shortcuts

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