Documentation ¶
Overview ¶
Package infiniband monitors the infiniband status of the system. Optional, enabled if the host has NVIDIA GPUs.
Index ¶
Constants ¶
View Source
const ( StateNameIbstat = "ibstat" StateKeyIbstatData = "data" StateKeyIbstatEncoding = "encoding" StateValueIbstatEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-infiniband"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { InfinibandClassExists bool `json:"infiniband_class_exists"` IbstatExists bool `json:"ibstat_exists"` Ibstat nvidia_query.IbstatOutput `json:"ibstat"` }
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.