temperature

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Overview

Package temperature provides the NVIDIA temperature metrics collection and reporting.

Index

Constants

View Source
const SubSystem = "accelerator_nvidia_temperature"

Variables

This section is empty.

Functions

func InitAveragers

func InitAveragers(db *sql.DB, tableName string)

func ReadCurrentCelsius

func ReadCurrentCelsius(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func ReadSlowdownUsedPercents

func ReadSlowdownUsedPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func ReadThresholdSlowdownCelsius

func ReadThresholdSlowdownCelsius(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func Register

func Register(reg *prometheus.Registry, db *sql.DB, tableName string) error

func SetCurrentCelsius

func SetCurrentCelsius(ctx context.Context, gpuID string, temp float64, currentTime time.Time) error

func SetLastUpdateUnixSeconds

func SetLastUpdateUnixSeconds(unixSeconds float64)

func SetSlowdownUsedPercent

func SetSlowdownUsedPercent(ctx context.Context, gpuID string, pct float64, currentTime time.Time) error

func SetThresholdSlowdownCelsius

func SetThresholdSlowdownCelsius(ctx context.Context, gpuID string, temp float64, currentTime time.Time) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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