Skip to content

Do not collect InfiniBand counters for Broadcom RoCE NICs #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

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

@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