processes

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package processes provides the NVIDIA processes metrics collection and reporting.

Index

Constants

View Source
const SubSystem = "accelerator_nvidia_processes"

Variables

This section is empty.

Functions

func InitAveragers

func InitAveragers(dbRW *sql.DB, dbRO *sql.DB, tableName string)

func ReadRunningProcessesTotal

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

func Register

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

func SetLastUpdateUnixSeconds

func SetLastUpdateUnixSeconds(unixSeconds float64)

func SetRunningProcessesTotal

func SetRunningProcessesTotal(ctx context.Context, gpuID string, processes int, 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