Skip to content

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 <[email protected]>
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

@SuperQ SuperQ merged commit 4482eb5 into prometheus:master Apr 19, 2025
8 checks passed
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