prometheus / prometheus/node_exporter
Add Support for GPU Clock Frequencies (sclk and mclk) in hwmon Collector
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.8k
- Forks
- 2.7k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Description
Hi, I would like to propose an enhancement to the hwmon collector to include GPU clock.
Currently on my machine I can pull the GPU clock metrics from hwmon:
/sys/class/hwmon/hwmon0/freq1_input:214000000
/sys/class/hwmon/hwmon0/freq1_label:sclk
/sys/class/hwmon/hwmon0/freq2_input:300000000
/sys/class/hwmon/hwmon0/freq2_label:mclk
However, they are not collected by the collector. I propose to add the clock frequencies support.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the hwmon collector and reviewing how it reads labeled metrics under /sys/class/hwmon. Use the sclk and mclk examples in the issue as inputs, then verify that the GPU clock frequencies are exposed as collector metrics with appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100