Documentation ¶
Overview ¶
Package memory provides the NVIDIA memory metrics collection and reporting.
Index ¶
- Constants
- func InitAveragers(db *sql.DB, tableName string)
- func ReadTotalBytes(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadUsedBytes(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadUsedPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func Register(reg *prometheus.Registry, db *sql.DB, tableName string) error
- func SetFreeBytes(gpuID string, bytes float64)
- func SetLastUpdateUnixSeconds(unixSeconds float64)
- func SetReservedBytes(gpuID string, bytes float64)
- func SetTotalBytes(ctx context.Context, gpuID string, bytes float64, currentTime time.Time) error
- func SetUsedBytes(ctx context.Context, gpuID string, bytes float64, currentTime time.Time) error
- func SetUsedPercent(ctx context.Context, gpuID string, pct float64, currentTime time.Time) error
Constants ¶
View Source
const SubSystem = "accelerator_nvidia_memory"
Variables ¶
This section is empty.
Functions ¶
func InitAveragers ¶
func ReadTotalBytes ¶
func ReadUsedBytes ¶
func ReadUsedPercents ¶
func SetFreeBytes ¶
func SetLastUpdateUnixSeconds ¶
func SetLastUpdateUnixSeconds(unixSeconds float64)
func SetReservedBytes ¶
func SetTotalBytes ¶
func SetUsedBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.