Documentation ¶
Overview ¶
Package utilization implements NVIDIA GPU utilization monitoring.
Index ¶
Constants ¶
View Source
const ( Name = "accelerator-nvidia-utilization" Description = "Tracks the per-GPU utilization." )
View Source
const ( StateNameUtilization = "utilization" StateKeyUtilizationData = "data" StateKeyUtilizationEncoding = "encoding" StateValueUtilizationEncodingJSON = "json" )
Variables ¶
View Source
var Tags = []string{"nvidia", "gpu", "utilization"}
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct {
Utilizations []nvidia_query_nvml.Utilization `json:"utilizations"`
}
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func ToOutput ¶
func ToOutput(i *nvidia_query.Output) *Output
Click to show internal directories.
Click to hide internal directories.