influxdata / influxdata/telegraf
Feature Request: Capture CPU Package Power Consumption (watts) on Windows & Linux platforms
- Dominant language
- Go
- Stars
- 17.8k
- Forks
- 5.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 161
Description
### Use Case
I would like to track the CPU power consumption for my servers. Tools like LibreHardwareMonitor and HWMonitor are able to capture this information, however Telegraf does not currently report CPU power usage.
I see that there's an Intel Power Stat plugin, but nothing for the AMD Ryzen platform. However, there is a Ryzen Master Monitoring SDK that could probably be used to capture this information. I'll include a copy of the description below.
> _The AMD Ryzen™ Master Monitoring SDK provides the same function calls for reading static and dynamic processor information as is used in the full AMD Ryzen™ Master software but is a subset of these function calls that provides read-only access to valuable processor metrics and data. A full readme file (.html) is included that details all the information on how to setup and use this SDK along with a pre-built sample application with source code and Visual Studio solutions that demonstrate the usage of the API calls._
> _Examples of functions included:_
> _Processor Information: Type, Vendor, Package
Cache/Core Information: L1, L2, L3, core counts
Memory Information: VDDIO, RAS, CAS, Read Address-to-Column Delay, Row Pre-Charge Delay
Current and Power: EDC (A), TDC (A), PPT (W), Average Core Voltage (ACV), Temperature, Voltage, CPU Active State Info
Speeds: Effective Frequency, Peak Speed, Fabric Clock, Memory Clock_
- AMD Ryzen Master SDK: https://www.amd.com/en/developer/ryzen-master-monitoring-sdk.html
- Intel Power Stat plugin for Telegraf: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/intel_powerstat
### Expected behavior
Telegraf captures CPU power consumption metric for AMD Ryzen CPUs on Windows 11 + Linux
### Actual behavior
Telegraf does not capture CPU power consumption (watts) for AMD Ryzen CPUs on Windows 11 + Linux
### Additional info
_No response_
Contributor guide
Research direction
Start by reviewing the existing plugins/inputs/intel_powerstat implementation and the AMD Ryzen Master Monitoring SDK documentation linked in the issue. Determine how the SDK and Linux/Windows paths can expose CPU package power, then verify that Telegraf reports the requested watts metric on both platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- observability-sre, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100