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.
Click to show internal directories.
Click to hide internal directories.