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?


After some searching, I would suggest the iptables plugin:

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!