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

support /proc/net/sockstat6 file for ipv6 #1526

Closed
jeffrey4l opened this issue Oct 29, 2019 · 2 comments
Closed

support /proc/net/sockstat6 file for ipv6 #1526

jeffrey4l opened this issue Oct 29, 2019 · 2 comments
Labels
enhancement platform/Linux Linux specific issue

Comments

@jeffrey4l
Copy link

jeffrey4l commented Oct 29, 2019

What did you do that produced an error?

Currently, node exporter only collect socket state from /proc/net/sockstat fiile. There is another file located /proc/net/sockstat6 support ipv6. need parse this file two.

What did you expect to see?

$ curl -s localhost:9100/metrics | grep '^node_sockstat'
node_sockstat_FRAG_inuse 0
node_sockstat_FRAG_memory 0
node_sockstat_RAW_inuse 1
node_sockstat_TCP_alloc 256
node_sockstat_TCP_inuse 159
node_sockstat_TCP_mem 37
node_sockstat_TCP_mem_bytes 151552
node_sockstat_TCP_orphan 0
node_sockstat_TCP_tw 13
node_sockstat_UDPLITE_inuse 0
node_sockstat_UDP_inuse 103
node_sockstat_UDP_mem 398
node_sockstat_UDP_mem_bytes 1.630208e+06
node_sockstat_sockets_used 1613

What did you see instead?

$ curl -s localhost:9100/metrics | grep '^node_sockstat'
node_sockstat_FRAG_inuse 0
node_sockstat_FRAG_memory 0
node_sockstat_RAW_inuse 1
node_sockstat_TCP_alloc 256
node_sockstat_TCP_inuse 159
node_sockstat_TCP_mem 37
node_sockstat_TCP_mem_bytes 151552
node_sockstat_TCP_orphan 0
node_sockstat_TCP_tw 13
node_sockstat_UDPLITE_inuse 0
node_sockstat_UDP_inuse 103
node_sockstat_UDP_mem 398
node_sockstat_UDP_mem_bytes 1.630208e+06
node_sockstat_sockets_used 1613

node_sockstat_TCP6_inuse 100
node_sockstat_UDP6_inuse 10
node_sockstat_RAW6_inuse 101
node_sockstat_FRAG6_inuse 120
@SuperQ
Copy link
Member

SuperQ commented Oct 29, 2019

Seems like a good idea to me. The sockstat parsing should probably be moved to our procfs library, this would be a good opportunity to deal with it.

@SuperQ SuperQ added enhancement platform/Linux Linux specific issue labels Oct 29, 2019
@SuperQ
Copy link
Member

SuperQ commented Mar 29, 2020

Looks like this was solved by #1552

@SuperQ SuperQ closed this as completed Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement platform/Linux Linux specific issue
Projects
None yet
Development

No branches or pull requests

2 participants