nvidia

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package nvidia collects GPU metrics using nvidia-smi.exe

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() ([]collector.Collector, error)

New creates new Nvidia GPU collector

func NewGPUCollector

func NewGPUCollector(cfgBaseName string) (collector.Collector, error)

NewGPUCollector creates new wmi collector

Types

type GPU

type GPU struct {
	// contains filtered or unexported fields
}

GPU metrics from the Windows Management Interface (wmi)

func (*GPU) Collect

func (gpu *GPU) Collect(ctx context.Context) error

Collect starts the background process if it is not running

func (*GPU) Flush

func (c *GPU) Flush() cgm.Metrics

Flush returns last metrics collected

func (*GPU) ID

func (c *GPU) ID() string

ID returns id of collector

func (*GPU) Inventory

func (c *GPU) Inventory() collector.InventoryStats

Inventory returns collector stats for /inventory endpoint

func (*GPU) Logger

func (c *GPU) Logger() zerolog.Logger

Logger returns collector's instance of logger

Jump to

Keyboard shortcuts

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