Skip to content

infiniband: do not make assumptions about counters based on HCA name #678

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
merged 2 commits into from
Apr 19, 2025

Conversation

dswarbrick
Copy link
Contributor

Some users have reported cases of systemd "predictable network interface naming" apparently also renaming the HCA device. This means we can no longer make assumptions about which counter(s) should be present based on the HCA name (i.e., irdma*, mlx5_*). The previous approach was quite brittle anyway, since there will undoubtedly be other IB / RoCE drivers in future which implement the hw_counters directory (but not the older counters directory).

Some users have reported cases of systemd "predictable network interface
naming" apparently also renaming the HCA device. This means we can no
longer make assumptions about which counter(s) should be present based
on the HCA name (i.e., irdma*, mlx5_*). The previous approach was quite
brittle anyway, since there will undoubtedly be other IB / RoCE drivers
in future which implement the hw_counters directory (but not the older
counters directory).

Signed-off-by: Daniel Swarbrick <[email protected]>
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

Makes sense, LGTM

@SuperQ
Copy link
Member

SuperQ commented Apr 19, 2025

Sorry, had to fix the commit since I didn't notice this before merging #687. This is a better solution.

@SuperQ SuperQ merged commit cff69b9 into prometheus:master Apr 19, 2025
7 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.

3 participants