smira / go-statsd

Go statsd client library with zero allocation overhead, great performance and reconnects
MIT License
110 stars 18 forks source link

Recommended initialization values - dropping packets? #37

Open abhishekc-92 opened 8 months ago

abhishekc-92 commented 8 months ago

I've been trying out the library in a component that receives periodic remote writes from prometheus, converts metrics and forwards to a statsd(udp) destination. With the default initialization, I've been observing logs from the library indicating packet loss. I then tried bumping up the buffer pool capacity, send queue capacity and the send loop, after which these error logs disappeared, but I'm still observing a small amount of dropped metrics in the destination. Is this something anyone else has observed?