-
Notifications
You must be signed in to change notification settings - Fork 325
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
/proc/net/tcp #20
/proc/net/tcp #20
Conversation
@abhiyerra Thanks! I just noticed that nobody looked at this PR yet. @brian-brazil you were always against reading /proc/net/tcp from the node exporter because of O(n^2) behavior, right? |
It's on my review list. procfs is a package independent of node_exporter. Any procfs support is welcome. |
Makes sense. Thank you @grobie :) |
It's already implemented in the node exporter, but disabled by default. It's not in general safe to use this file due to poor performance when you have thousands of connections. |
Hello, it appears these PRs have grown very stale. Closing for now due to lack of activity, but feel free to re-open if you're able to pick them back up. |
Are there alternatives here? I'd like to see this(or something similar) in the package. I tested reading /proc/net/tcp and it was pretty fast. sub 200ms to read the file on a host with 16k open connections. That seems good enough for me. I can start a new PR based on this one, or if there is a different way of doing this, let me know and I can take a shot at it. |
200ms is quite slow. But that's not really a big deal, we can still provide parsing support for this data in the library. There are other use cases for parsing this file and we ant this procfs library to be useful outside of just node_exporter. @hubt If you want to open a new PR, please go ahead. |
Fix <pid>, <tid> dissapeared in rustdoc
No description provided.