Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClockStats ¶
type ClockStats struct { Graphics string `xml:"graphics_clock"` // int SM string `xml:"sm_clock"` // int Memory string `xml:"mem_clock"` // int Video string `xml:"video_clock"` // int }
ClockStats defines the structure of the clocks portion of the smi output.
type EncoderStats ¶
type EncoderStats struct { SessionCount string `xml:"session_count"` // int AverageFPS string `xml:"average_fps"` // int AverageLatency string `xml:"average_latency"` // int }
EncoderStats defines the structure of the encoder_stats portion of the smi output.
type FBCStats ¶ added in v1.15.0
type FBCStats struct { SessionCount string `xml:"session_count"` // int AverageFPS string `xml:"average_fps"` // int AverageLatency string `xml:"average_latency"` // int }
FBCStats defines the structure of the fbc_stats portion of the smi output.
type GPU ¶
type GPU []struct { FanSpeed string `xml:"fan_speed"` // int Memory MemoryStats `xml:"fb_memory_usage"` PState string `xml:"performance_state"` Temp TempStats `xml:"temperature"` ProdName string `xml:"product_name"` UUID string `xml:"uuid"` ComputeMode string `xml:"compute_mode"` Utilization UtilizationStats `xml:"utilization"` Power PowerReadings `xml:"power_readings"` PCI PCI `xml:"pci"` Encoder EncoderStats `xml:"encoder_stats"` FBC FBCStats `xml:"fbc_stats"` Clocks ClockStats `xml:"clocks"` }
GPU defines the structure of the GPU portion of the smi output.
type MemoryStats ¶
type MemoryStats struct { Total string `xml:"total"` // int Used string `xml:"used"` // int Free string `xml:"free"` // int }
MemoryStats defines the structure of the memory portions in the smi output.
type NvidiaSMI ¶
NvidiaSMI holds the methods for this plugin
func (*NvidiaSMI) Description ¶
Description returns the description of the NvidiaSMI plugin
func (*NvidiaSMI) Gather ¶
func (smi *NvidiaSMI) Gather(acc telegraf.Accumulator) error
Gather implements the telegraf interface
func (*NvidiaSMI) SampleConfig ¶
SampleConfig returns the sample configuration for the NvidiaSMI plugin
type PCI ¶
type PCI struct { LinkInfo struct { PCIEGen struct { CurrentLinkGen string `xml:"current_link_gen"` // int } `xml:"pcie_gen"` LinkWidth struct { CurrentLinkWidth string `xml:"current_link_width"` // int } `xml:"link_widths"` } `xml:"pci_gpu_link_info"` }
PCI defines the structure of the pci portion of the smi output.
type PowerReadings ¶
type PowerReadings struct {
PowerDraw string `xml:"power_draw"` // float
}
PowerReadings defines the structure of the power_readings portion of the smi output.
type SMI ¶
type SMI struct { GPU GPU `xml:"gpu"` DriverVersion string `xml:"driver_version"` CUDAVersion string `xml:"cuda_version"` }
SMI defines the structure for the output of _nvidia-smi -q -x_.
type TempStats ¶
type TempStats struct {
GPUTemp string `xml:"gpu_temp"` // int
}
TempStats defines the structure of the temperature portion of the smi output.
type UtilizationStats ¶
type UtilizationStats struct { GPU string `xml:"gpu_util"` // int Memory string `xml:"memory_util"` // int Encoder string `xml:"encoder_util"` // int Decoder string `xml:"decoder_util"` // int }
UtilizationStats defines the structure of the utilization portion of the smi output.