Repository navigation
Introduce parsing for /proc/<pid>/net/snmp, /proc/<pid>/net/snmp6 and /proc/<pid>/net/netstat. - #435
Conversation
6f39a9c to
a8481ba
Compare
|
Nice, do we have to worry about missing fields in various kernel versions? We like to be able to support very old kernels in this library, since Go will run on kernels as old as 2.6.23. |
|
Any chance I can also get you to implement |
|
Sure i will implement snmp6 and netstat also. |
/proc/<pid>/net/snmp./proc/<pid>/net/snmp, /proc/<pid>/net/snmp6 and /proc/<pid>/net/netstat.
a8481ba to
c0cd365
Compare
|
@SuperQ I added also snmp6 and netstat. Have a look please! |
c0cd365 to
978dee6
Compare
… and `/proc/<pid>/net/netstat`. Signed-off-by: Nikos Kakavas <[email protected]>
978dee6 to
3d753b0
Compare
Signed-off-by: Nikos Kakavas <[email protected]>
dc5e963 to
5c12586
Compare
|
@discordianfish @SuperQ Have a look again please! |
|
Hello! @discordianfish @SuperQ |
pgier
left a comment
There was a problem hiding this comment.
LGTM, just had a couple of optional in-line suggestions.
99e9c79 to
18c4ef8
Compare
Signed-off-by: Nikos Kakavas <[email protected]>
18c4ef8 to
6ff7304
Compare
| // and returns a map contains those metrics. | ||
| func parseSNMP6Stats(r io.Reader) (ProcSnmp6, error) { | ||
| var ( | ||
| scanner = bufio.NewScanner(r) |
There was a problem hiding this comment.
I will fix this fmt issue and also try to investigate why this didn't worked properly
There was a problem hiding this comment.
Weird. Maybe out of date source branch?
…snmp Introduce parsing for `/proc/<pid>/net/snmp`, `/proc/<pid>/net/snmp6` and `/proc/<pid>/net/netstat`.
No description provided.