collector: reimplement sockstat collector with procfs (#1552)
* collector: reimplement sockstat collector with procfs * collector: handle sockstat IPv4 disabled, debug logging Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
3c2c4e7b3c
commit
da6b66371f
15 changed files with 374 additions and 342 deletions
5
collector/fixtures/proc/net/sockstat6
Normal file
5
collector/fixtures/proc/net/sockstat6
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TCP6: inuse 17
|
||||
UDP6: inuse 9
|
||||
UDPLITE6: inuse 0
|
||||
RAW6: inuse 1
|
||||
FRAG6: inuse 0 memory 0
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
sockets: used 229
|
||||
TCP: inuse 4 orphan 0 tw 4 alloc 17 mem 1
|
||||
UDP: inuse 0
|
||||
RAW: inuse 0
|
||||
FRAG: inuse 0 memory 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue