I’m using TCP to ship the various system metrics using a specific port. As I’m running multiple telegraf instances on a single server, I found there is a field ‘port’ shipped showing different values for each telegraf instance, which is 5-digit number like 539xx. Can I understand this is telegraf port number? Acutally I’m doing some performance test for the telegraf and wondering this way of running multiple instances would give me rough ideas about the performance. I don’t care about the data duplication and consider the CPU usage increase with many instances running on a single server.
In short, telegraf looks like sending a field named ‘port’ in tags (or somewhere). What is this for? Is this used for each telegraf instance running on the server?
I tested that it’s not related to any input plugins I’m using. But I found it’s coming when I use tcp for socket_writer. If I use udp the port does not come. The ports I get from the telegraf instances are different from the one I specified in the tcp output plugin. Does this make sense?