Skip to content

feat: expose sysfs_device label for network, nvme, and infiniband#3746

Open
sulaimantok wants to merge 1 commit into
prometheus:masterfrom
sulaimantok:master
Open

feat: expose sysfs_device label for network, nvme, and infiniband#3746
sulaimantok wants to merge 1 commit into
prometheus:masterfrom
sulaimantok:master

Conversation

@sulaimantok

Copy link
Copy Markdown

This PR implements the feature requested in #3721 by introducing a new sysfs_device label to the following info metrics:

  • node_network_info
  • node_nvme_info
  • node_infiniband_info

What changed:

  • Added a sysfsDevice helper to dynamically resolve the symlink target of /sys/class/<class>/<device>/device.
  • Injected the underlying hardware address (e.g., PCI BDF 0000:00:1f.3) into the metrics as a new label sysfs_device.
  • Updated e2e-output.txt and e2e-64k-page-output.txt fixtures to reflect the new label format.

Why this is needed:
As detailed in #3721, when a physical hardware issue occurs (e.g., NIC or cable failure), operators need a reliable way to map the affected logical interface directly to its physical PCI/Hardware location on the chassis. Exposing the sysfs_device label makes it seamless to identify the physical BDF location for maintenance or part replacements.

Closes #3721

@sulaimantok sulaimantok force-pushed the master branch 2 times, most recently from 74cd423 to 47ae1b4 Compare July 15, 2026 10:07
Closes prometheus#3721

Signed-off-by: Sulaiman Al farisi <23329919+sulaimantok@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] append the name of a pci device to node_pcidevice_info

1 participant