Documentation ¶
Overview ¶
Package peermem monitors the peermem module status. Optional, enabled if the host has NVIDIA GPUs.
Index ¶
Constants ¶
View Source
const ( StateNameLsmodPeermem = "lsmod_peermem" StateKeyLsmodPeermemData = "data" StateKeyLsmodPeermemEncoding = "encoding" StateValueLsmodPeermemEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-peermem"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { ProductName string `json:"product_name"` LsmodPeermem nvidia_query.LsmodPeermemModuleOutput `json:"lsmod_peermem"` }
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.