mailru / graphite-nginx-module

An nginx module for collecting stats into Graphite
135 stars 34 forks source link

Metrics do not send over TCP to remote graphite host #16

Closed zasca closed 6 years ago

zasca commented 6 years ago

Hi! First of all, thanks for this module!

I faсed with error graphite tcp buffer is full when metrics sending over TCP to remote graphite host. It seems there is not enough time to establish a connection and an attempt to send data is done without waiting for.

When metrics send to localhost or to a remote host over UDP all looks good.

kirimedia commented 6 years ago

The module tries to send data at the same time. If there is a lot of data then there may be an error with the tcp buffer overflow. I'm going to implement a normal asynchronous sending via tcp

orhuidobro commented 6 years ago

I receive the same error, even when nginx has no load at all. Changing port to udp, everything works fine. It's not a network problem, I even tried opening all TCP ports. I increased buffer size, with no luck.

kirimedia commented 6 years ago

I'll do it in a week

kirimedia commented 6 years ago

I did it. v2.2