Documentation ¶
Overview ¶
Package gpm tracks the NVIDIA per-GPU GPM metrics.
Index ¶
Constants ¶
View Source
const ( StateNameGPM = "gpm" StateKeyGPMData = "data" StateKeyGPMEncoding = "encoding" StateValueGPMEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-gpm"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct {
NVMLGPMEvent *nvidia_query_nvml.GPMEvent `json:"nvml_gpm_event,omitempty"`
}
func ParseOutputJSON ¶
func ParseOutputYAML ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func (*Output) Events ¶
func (o *Output) Events() []components.Event
Click to show internal directories.
Click to hide internal directories.