gostats icon indicating copy to clipboard operation
gostats copied to clipboard

Using Gostats with UDP

Open vk-98 opened this issue 3 years ago • 3 comments

Is it possible to use gostats with UDP protocol instead of TCP? If so, then what are the changes we have to do, and how we can check it is working?

vk-98 avatar May 04 '22 13:05 vk-98

You can use WithStatsdProtocol when creating the sink, or set the environment variable STATSD_PROTOCOL.

fsouza avatar May 04 '22 13:05 fsouza

So what should be the value needed to assign to this STATSD_PROTOCOL environment variable?

vk-98 avatar May 05 '22 05:05 vk-98

So what should be the value needed to assign to this STATSD_PROTOCOL environment variable?

udp

fsouza avatar May 05 '22 11:05 fsouza