Skip to content
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

Do not collect InfiniBand counters for Broadcom RoCE NICs #687

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oneoneonepig
Copy link

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]>
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.

1 participant