memory

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package memory provides the NVIDIA memory metrics collection and reporting.

Index

Constants

View Source
const SubSystem = "accelerator_nvidia_memory"

Variables

This section is empty.

Functions

func InitAveragers

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

func ReadTotalBytes

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

func ReadUsedBytes

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

func ReadUsedPercents

func ReadUsedPercents(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 SetFreeBytes

func SetFreeBytes(gpuID string, bytes float64)

func SetLastUpdateUnixSeconds

func SetLastUpdateUnixSeconds(unixSeconds float64)

func SetReservedBytes

func SetReservedBytes(gpuID string, bytes float64)

func SetTotalBytes

func SetTotalBytes(ctx context.Context, gpuID string, bytes float64, currentTime time.Time) error

func SetUsedBytes

func SetUsedBytes(ctx context.Context, gpuID string, bytes float64, currentTime time.Time) error

func SetUsedPercent

func SetUsedPercent(ctx context.Context, gpuID string, pct 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