prometheus / prometheus/node_exporter

Add Support for GPU Clock Frequencies (sclk and mclk) in hwmon Collector

Open
#3,092 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.