Telegraf measure traffic on specific port

Hi there!

I have a Telegraf container that I’m using to capture streaming network telemetry and would like to use Telegraf to monitor port 57000 for bytes received. How would I go about doing that?

Thanks!!

After some searching, I would suggest the iptables plugin: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/iptables

I haven’t done this so I can’t explain the details of how to do it, but from my brief reading, it looks like you can set an iptables rule (with a comment) for your port, and then the telegraf iptables plugin can monitor bytes associated with that rule.

If you get it working, please post a working example back. The community would benefit from this!

Will do!

image002.jpg