lyft / gostats

Go client for Stats
Other
56 stars 18 forks source link

Using Gostats with UDP #127

Open vk-98 opened 2 years ago

vk-98 commented 2 years ago

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?

fsouza commented 2 years ago

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

vk-98 commented 2 years ago

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

fsouza commented 2 years ago

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

udp