Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInfo ¶
type DeviceInfo struct {
// The following fields are guaranteed to be retrieved from nvml
UUID string
PCIBusID string
DisplayState string
PersistenceMode string
// The following fields can be nil after call to nvml, because nvml was
// not able to retrieve this fields for specific nvidia card
Name *string
MemoryMiB *uint64
PowerW *uint
BAR1MiB *uint64
PCIBandwidthMBPerS *uint
CoresClockMHz *uint
MemoryClockMHz *uint
}
DeviceInfo represents nvml device data this struct is returned by NvmlDriver DeviceInfoByIndex and DeviceInfoAndStatusByIndex methods
type DeviceStatus ¶
type DeviceStatus struct {
// The following fields can be nil after call to nvml, because nvml was
// not able to retrieve this fields for specific nvidia card
PowerUsageW *uint
TemperatureC *uint
GPUUtilization *uint // %
MemoryUtilization *uint // %
EncoderUtilization *uint // %
DecoderUtilization *uint // %
PowerLimit *uint
FanCount *uint
FanSpeeds map[int]uint // index = fanID, value = speed
BAR1UsedMiB *uint64
UsedMemoryMiB *uint64
TotalMemoryMiB *uint64
FreeMemoryMiB *uint64
ECCErrorsL1Cache *uint64
ECCErrorsL2Cache *uint64
ECCErrorsDevice *uint64
}
DeviceStatus represents nvml device status this struct is returned by NvmlDriver DeviceInfoAndStatusByIndex method
type GpuCollector ¶
type GpuCollector struct {
// contains filtered or unexported fields
}
func NewGpuCollector ¶
func NewGpuCollector() (*GpuCollector, error)
func (*GpuCollector) Close ¶
func (g *GpuCollector) Close()
func (*GpuCollector) Collect ¶
func (g *GpuCollector) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector
func (*GpuCollector) Describe ¶
func (g *GpuCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector
type MetricDesc ¶
type MetricDesc struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.