Skip to content

Do not collect InfiniBand counters for Broadcom RoCE NICs#687

Merged
SuperQ merged 1 commit intoprometheus:masterfrom
oneoneonepig:skip_infiniband_broadcom_roce
Apr 19, 2025
Merged

Do not collect InfiniBand counters for Broadcom RoCE NICs#687
SuperQ merged 1 commit intoprometheus:masterfrom
oneoneonepig:skip_infiniband_broadcom_roce

Conversation

@oneoneonepig
Copy link
Contributor

Broadcom RoCE NICs (bnxt_re#) does not have the counter metrics exposed in /sys/class/infiniband/<device>/ports/<port-num>/counter.

$ strace -e trace=open,openat node_exporter --log.level=debug
...
1270794 openat(AT_FDCWD, "/sys/class/infiniband/bnxt_re0/ports/1/counters", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
...

$ ls /sys/class/infiniband/bnxt_re0/ports/1/counters
ls: cannot access '/sys/class/infiniband/bnxt_re0/ports/1/counters': No such file or directory

This will cause Node Exporter to never collect any InfiniBand metrics since it always return with error ENOENT

Signed-off-by: Jeffrey Chu <oneoneonepig@users.noreply.github.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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.

2 participants