Versions in this module Expand all Collapse all v0 v0.1.3 May 5, 2026 Changes in this version + const CategoryFast + const CommandSetClockRange + const CommandSetPowerCap + type ClockRangeCommand struct + GPUIndex int + MemMaxMHz uint32 + MemMinMHz uint32 + SMMaxMHz uint32 + SMMinMHz uint32 + type Collector struct + func NewCollector() (*Collector, error) + func (g *Collector) CollectFast() (*FastMetrics, error) + func (g *Collector) Enabled() bool + func (g *Collector) StaticInfo() []StaticInfo + type CollectorSpec struct + Category string + Interval string + type Controller struct + func NewController(collector *Collector) *Controller + func (c *Controller) SetClockRange(_ int, _, _, _, _ uint32) error + func (c *Controller) SetClockRange(gpuIndex int, smMinMHz, smMaxMHz, memMinMHz, memMaxMHz uint32) error + func (c *Controller) SetPowerCap(_ int, _ uint32) error + func (c *Controller) SetPowerCap(gpuIndex int, milliWatt uint32) error + type ControllerSpec struct + Type string + type DeviceFastMetrics struct + GraphicsClockMHz uint32 + Index int + MemClockMaxMHz uint32 + MemClockMinMHz uint32 + MemoryClockMHz uint32 + MemoryUsedBytes uint64 + PowerLimitMilliW uint32 + PowerUsageMilliW uint32 + SMClockMaxMHz uint32 + SMClockMinMHz uint32 + SampledAtNano int64 + TemperatureC uint32 + UtilizationGPU uint32 + UtilizationMem uint32 + type FastMetrics struct + Devices []DeviceFastMetrics + type Module struct + func New(intervals config.ReportConfig) (*Module, error) + func (m *Module) CollectorEntries() []modules.CollectorEntry + func (m *Module) ControllerEntries() []modules.ControllerEntry + func (m *Module) Name() string + func (m *Module) Registration() any + type PowerCapCommand struct + GPUIndex int + MilliWatt uint32 + type Registration struct + Collectors []CollectorSpec + Controllers []ControllerSpec + Static []StaticInfo + type StaticInfo struct + Index int + MemClockMaxMHz uint32 + MemClockMinMHz uint32 + MemoryTotalBytes uint64 + Name string + PowerMaxMilliWatt uint32 + PowerMinMilliWatt uint32 + SMClockMaxMHz uint32 + SMClockMinMHz uint32 + UUID string