What plugin to collect IPv4 and IPv6 traffic statistics?

Hi,

I’m looking for a Telegraf plugin that is capable to record the amount of data that is entering my network and leaving my network.
Important is, that the plugin should differentiate between IPv4 and IPv6 traffic.
The Telegraf agent would be sitting on an OpenWRT box.

Any ideas, what plugin I could use for that?
netstat seem not to collect that kind of data, according to its Readme.
Also Conntrack seem to track number of connections, errors and so on, but not the amount of data flowing the one or other direction.

Looking forward for suggestions.

Thanks,
newpipe

I’m not aware of any plugin that breaks it down by IPv6 vs IPv4.

You would want to read the output of nstat -z and/or read /proc/net/dev_snmp6/<interface> and /proc/net/dev/<interface> and get the packet counters there.

Hi,

thanks for your answer.
That really brought me to the right track.
In fact, there is a plugin, that at least reads the IPv6 part.
The plugin is called nstat.

Thanks,
newpipe

1 Like