Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

add support for multiple metrics in a single packet #25

Closed
wants to merge 1 commit into from

Conversation

goir
Copy link
Contributor

@goir goir commented Jul 3, 2015

add support for multiple metrics in a single packet separated by a newline character

I'm no C expert, improvements are more than welcome. I've deployed it on our servers and its working fine. CPU load decreased by about 50% because of less packets to read or so :)

fixes #16

brubeck_server_mark_dropped(server);
continue;
char *end = msgs[i].msg_hdr.msg_iov->iov_base + msgs[i].msg_len;
*end = '\0';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you stick to C89 here? (no mixed declarations)

@liyichao
Copy link

liyichao commented Aug 3, 2015

+1

2 similar comments
@simhappy
Copy link

+1

@onyxmaster
Copy link

+1

@vmg
Copy link
Contributor

vmg commented Feb 23, 2016

Good news everyone! I've went ahead and implemented this in our internal fork of Brubeck, and published the changes. Multimetric packets are now available in the master branch of this repository. I'll tag a release once this stabilizes.

@vmg vmg closed this Feb 23, 2016
@onyxmaster
Copy link

Great news, Vicent, many thanks.

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

Successfully merging this pull request may close these issues.

Statsd server uses \n as separator for multiple metrics
5 participants