Documentation
¶
Overview ¶
Package power tracks the NVIDIA per-GPU power usage.
Index ¶
Constants ¶
View Source
const Name = "accelerator-nvidia-power"
Name is the name of the NVIDIA power component.
View Source
const SubSystem = "accelerator_nvidia_power"
SubSystem is the Prometheus subsystem name for the NVIDIA power component.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(gpudInstance *components.GPUdInstance) (components.Component, error)
New creates a NVIDIA power component.
Types ¶
type Power ¶ added in v0.9.0
type Power struct {
// Represents the GPU UUID.
UUID string `json:"uuid"`
// BusID is the GPU bus ID from the nvml API.
// e.g., "0000:0f:00.0"
BusID string `json:"bus_id"`
UsageMilliWatts uint32 `json:"usage_milli_watts"`
EnforcedLimitMilliWatts uint32 `json:"enforced_limit_milli_watts"`
ManagementLimitMilliWatts uint32 `json:"management_limit_milli_watts"`
UsedPercent string `json:"used_percent"`
GetPowerUsageSupported bool `json:"get_power_usage_supported"`
GetPowerLimitSupported bool `json:"get_power_limit_supported"`
GetPowerManagementLimitSupported bool `json:"get_power_management_limit_supported"`
}
Power reports NVIDIA GPU power readings and support flags.
func (Power) GetUsedPercent ¶ added in v0.9.0
GetUsedPercent parses the cached percentage of used power.
Click to show internal directories.
Click to hide internal directories.