gpu

package
v0.0.0-...-76af2ec Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 18 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(tagger tagger.Component) 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 (c *Check) Cancel()

Cancel stops the check

func (*Check) Configure

func (c *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 (c *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