config

package
v0.0.0-...-946132c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config provides the GPU monitoring config.

Index

Constants

View Source
const GPUNS = "gpu_monitoring"

GPUNS is the namespace for the GPU monitoring probe.

Variables

View Source
var ErrNotSupported = errors.New("GPU Monitoring is not supported")

ErrNotSupported is the error returned if GPU monitoring is not supported on this platform

View Source
var MinimumKernelVersion kernel.Version

MinimumKernelVersion indicates the minimum kernel version required for GPU monitoring

Functions

func CheckGPUSupported

func CheckGPUSupported() error

CheckGPUSupported checks if the host's kernel supports GPU monitoring

Types

type Config

type Config struct {
	ebpf.Config
	// Enabled indicates whether the GPU monitoring probe is enabled.
	Enabled bool
	// ScanTerminatedProcessesInterval is the interval at which the probe scans for terminated processes.
	ScanTerminatedProcessesInterval time.Duration
	// InitialProcessSync indicates whether the probe should sync the process list on startup.
	InitialProcessSync bool
	// NVMLLibraryPath is the path of the native libnvidia-ml.so library
	NVMLLibraryPath string
}

Config holds the configuration for the GPU monitoring probe.

func New

func New() *Config

New generates a new configuration for the GPU monitoring probe.

Jump to

Keyboard shortcuts

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