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

/proc/net/tcp #20

Closed
wants to merge 13 commits into from
Closed

/proc/net/tcp #20

wants to merge 13 commits into from

Conversation

abhiyerra
Copy link
Contributor

No description provided.

@juliusv
Copy link
Member

juliusv commented Jan 21, 2016

@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?

@grobie
Copy link
Member

grobie commented Jan 21, 2016

It's on my review list.

procfs is a package independent of node_exporter. Any procfs support is welcome.

@juliusv
Copy link
Member

juliusv commented Jan 21, 2016

Makes sense. Thank you @grobie :)

@brian-brazil
Copy link
Contributor

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.

@mdlayher
Copy link
Contributor

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.

@mdlayher mdlayher closed this Oct 11, 2017
@hubt
Copy link
Contributor

hubt commented Sep 10, 2020

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.

@SuperQ
Copy link
Member

SuperQ commented Sep 13, 2020

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.

bobrik pushed a commit to bobrik/procfs that referenced this pull request Jan 14, 2023
Fix <pid>, <tid> dissapeared in rustdoc
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.

7 participants