Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data received at port UDP:8125 are sometimes concatenated before being processed #638

Open
stayen opened this issue Dec 13, 2017 · 3 comments

Comments

@stayen
Copy link

stayen commented Dec 13, 2017

I noticed that statsd at times concatenates data received at UDP:8125 (default port) before processing it. I.e., if I send sequence of data like

example.filesInFolder:1|c
example.listFolderTR:4|ms
example.httpSendTR:8|ms
example.httpSend:1|c

statsd may process single concatenated line

example.filesInFolder:1|cexample.listFolderTR:4|msexample.httpSendTR:8|msexample.httpSend:1|c

instead, creating various bogus databases in storage engine (graphite)

Looks like there's correlation between how many lines are received at UDP:8125 and frequency of the above behavior (the faster data are sent, the more often concatenation happens).

Is it possible to prevent the above from happening?

@bagrounds
Copy link

I wonder if appending a newline to your metrics would fix this.

https://github.com/etsy/statsd/blob/master/docs/metric_types.md#multi-metric-packets

@stayen
Copy link
Author

stayen commented Mar 24, 2018

@bagrounds Looks like it does, at least in certain cases (will do thorough checks anyway). Thanks.

@BlueHatbRit
Copy link
Member

I realise I'm asking you to cast your mind back well over a year, but did this work for you @stayen? With the recent revival of this project I'm wondering if this is still something we should be looking at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants