Add chip label to DRM metrics - #3572
Conversation
|
@SuperQ and @discordianfish PTAL |
|
This needs a rebase. |
|
@SuperQ done |
d3422a4 to
ca0ae3e
Compare
|
@SuperQ PTAL |
53101c6 to
8e4666c
Compare
209c02c to
9154335
Compare
rtreffer
left a comment
There was a problem hiding this comment.
I think this can be simplified by using just one metric and exporting an empty string if missing (which is a common pattern).
Other than that: having common join keys would be helpful.
3ab2175 to
c3de2d0
Compare
|
@SuperQ Can you reapprove plz, had to rebase |
rtreffer
left a comment
There was a problem hiding this comment.
@SuperQ I think there is one gap/risk in the cleanup/naming diverging between hwmon and drm. Aligning that would probably be significant work and I am not 100% convinced it will work easily or if it is relevant in the context of GPUs.
I think this is cool overall.
| func chipName(s sysfs.ClassDRMCardAMDGPUStats) string { | ||
| // generate a chip name based on the deviceType and devName | ||
| cleanDevName := cleanMetricName(s.DevName) | ||
| cleanDevType := cleanMetricName(s.DevType) |
There was a problem hiding this comment.
This should relate to https://github.com/prometheus/node_exporter/blob/master/collector/hwmon_linux.go#L517
However both parts come from different sources and will diverge.
This is annoying after #3646
I am not sure this is something that could actually harm us, but calling it out as an issue overall. Making both implementations align is probably not worth the effort.
Signed-off-by: Deezzir <deezzir@gmail.com>
|
@SuperQ Can you approve the workflows plz? |
Issue
Add chip label to the
node_drm_card_infometric.Solution
Extend the DRM collector to have the
chiplabel from theClassDRMCardAMDGPUStats.The change was also proposed in the procfs repo, and the PR was merged.
Context
The DRM metrics are impossible to relate to the
hwmonmetrics, which export other helpful information about AMD GPUs. The extension will allow us to relate metrics from bothhwmonanddrmand, in turn, create a better GPU Dashboard for AMD with proper filtering and labelling.Example metrics: