Skip to content

Add protocol stats to the network plugin#382

Merged
sparrc merged 2 commits intomasterfrom
nc-net-protos
Dec 4, 2015
Merged

Add protocol stats to the network plugin#382
sparrc merged 2 commits intomasterfrom
nc-net-protos

Conversation

@nathanielc
Copy link
Contributor

This add the system wide network protocol stats to the net plugin.

Uses a new method in gopsutil see shirou/gopsutil#109

Basically exposes all the data in /proc/net/snmp as

net_PROTOCOL_COLNAME

for example:

Excerpt from /proc/net/snmp

Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti
Udp: 67688650 3723361 58108572 124599763 58108572 0 0 318767

adds measurement net_udp_rcvbuferrors with value 58108572 etc.

CHANGELOG.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go higher up, under 0.2.3

@sparrc
Copy link
Contributor

sparrc commented Nov 20, 2015

looks good, thanks @nathanielc! will get this merged once the gopsutil PR is merged

@sparrc sparrc merged commit c83f220 into master Dec 4, 2015
@sparrc sparrc deleted the nc-net-protos branch December 7, 2015 19:03
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.

2 participants