gpu

package
v0.0.0-...-41dbc07 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package gpu defines the agent corecheck for the GPU integration

Index

Constants

View Source
const CheckName = "gpu"

CheckName defines the name of the GPU check

Variables

This section is empty.

Functions

func Factory

func Factory() optional.Option[func() check.Check]

Factory creates a new check factory

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check represents the GPU check that will be periodically executed via the Run() function

func (*Check) Cancel

func (m *Check) Cancel()

Cancel stops the check

func (*Check) Configure

func (m *Check) Configure(senderManager sender.SenderManager, _ uint64, config, initConfig integration.Data, source string) error

Configure parses the check configuration and init the check

func (*Check) Run

func (m *Check) Run() error

Run executes the check

type CheckConfig

type CheckConfig struct {
	NVMLLibraryPath string `yaml:"nvml_library_path"`
}

CheckConfig holds the configuration for the GPU check

Directories

Path Synopsis
Package model contains the model for the GPU check, with types shared between the system-probe GPU probe and the gpu core agent check
Package model contains the model for the GPU check, with types shared between the system-probe GPU probe and the gpu core agent check
Package nvidia holds the logic to collect metrics from the NVIDIA Management Library (NVML).
Package nvidia holds the logic to collect metrics from the NVIDIA Management Library (NVML).

Jump to

Keyboard shortcuts

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