-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(inputs.infiniband): Add support for RDMA counters #16336
base: master
Are you sure you want to change the base?
Conversation
Thanks so much for the pull request! |
@srebhan, Note |
Thanks for looking into merging the feature into the existing plugin! |
@izekr any news on this PR? |
97e31b8
to
652fd89
Compare
!signed-cla |
@izekr could you please sign the CLA so I can give this PR a review!? |
Download PR build artifacts for , , and . 🥳 This pull request decreases the Telegraf binary size by -100.00 % for linux amd64 (new size: 0 B, nightly size 280.6 MB) 📦 Click here to get additional PR build artifactsArtifact URLs
|
!signed-cla |
#16336 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @izekr for the update. Just some working comments...
@@ -22,22 +24,30 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. | |||
# This plugin ONLY supports Linux | |||
[[inputs.infiniband]] | |||
# no configuration | |||
|
|||
## By default, don't gather RDMA counters | |||
# rdma = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about naming this gather_rdma
to make it more clear?
Log telegraf.Logger `toml:"-"` | ||
RDMA bool `toml:"rdma" default:"false"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log telegraf.Logger `toml:"-"` | |
RDMA bool `toml:"rdma" default:"false"` | |
RDMA bool `toml:"gather_rdma"` | |
Log telegraf.Logger `toml:"-"` |
## By default, don't gather RDMA counters | ||
# rdma = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## By default, don't gather RDMA counters | |
# rdma = false | |
## Collect RDMA counters | |
# gather_rdma = false |
Summary
This PR introduces a RDMA counters (in a Linux environment) to the exiting InfiniBand input plugin. The new RDMA counters gathers statistics from the hardware counters located under (for example):
/sys/class/infiniband/mlx5_0/ports/1/hw_counters/
Checklist
Related issues
resolves #16334
superseeds #16335