Repository navigation
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.
|
@SuperQ Can you approve the workflows plz? |
Signed-off-by: Deezzir <[email protected]>
|
/workflow-approve |
|
Please move the shared normalization function and regex into a common Linux file, or give DRM an independent helper. Please also verify with |
|
(we should probably add tests to CI with all the different build tags we have in the code, but something for a different PR) |
|
@ArthurSens addressed in 98e887f |
|
/workflow-approve |
Signed-off-by: Deezzir <[email protected]>
|
@ArthurSens apologies, I've fixed the copyright |
|
/workflow-approve |
|
@ArthurSens Seems to be all green, thanks |
|
@ArthurSens, ready to merge? |
The behavior of `node_cpu_frequency_hertz` has changed. There are two different sources of data for this metric. One from the `cpu` collector, one from the `cpufreq` collector. Due to historical feature migrations the `cpufreq` collector shares the same subsystem as the `cpu` collector. This caused conflicting data behavior. An attempt to fix this was introduced in #3318. This behavior has been reverted to the previous behavior in #3795. A new flag (`--collector.cpufreq.enable-cpufreq-prefix`) has been introduced that gives the `cpufreq` a dedicated metric name subsystem (`node_cpufreq_...`). This will likely be the default in v2. * [CHANGE] netstat: Use procfs parsers for netstat, snmp and snmp6 #3796 * [CHANGE] edac: Fix no data results #3863 * [CHANGE] nvme: Deprecate metric nvme_namespace_capacity_bytes #3899 * [FEATURE] Add tainted collector for /proc/sys/kernel/tainted #3745 * [FEATURE] Add resctrl collector #3797 * [ENHANCEMENT] netstat: Add new FreeBSD metrics #3334 * [ENHANCEMENT] Add `chip` label to DRM metrics #3572 * [ENHANCEMENT] diskstats: add device-mapper backing device info metric #3676 * [ENHANCEMENT] textfile: support UTF-8 metric and label names #3729 * [ENHANCEMENT] ksmd: add general_profit metric #3778 #3894 * [BUGFIX] edac: Fix printf-style formatting in slog call #3759 * [BUGFIX] fibre_channel: fix crash when attempting to dereference invalid counters #3573 * [BUGFIX] thermal: Fix collecting Darwin temperatures without CPU power status #3767 * [BUGFIX] fibrechannel: Fix for ppc64le #3769 * [BUGFIX] cpu: Revert dup cpu frequency, add node_cpufreq flag #3795 * [BUGFIX] infiniband: skip sysfs reads for excluded devices #3824 * [BUGFIX] bcache: Fix btree_read_average_duration_seconds unit #3828 Signed-off-by: Ben Kochie <[email protected]>
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: