node-dogstatsd increment and incrementBy Function

22 views
Skip to first unread message

DM

unread,
Jul 1, 2015, 10:20:05 AM7/1/15
to nod...@googlegroups.com
Hi,

I have been looking into node-dogstatsd .  Can someone please explain me why the sampling rate is not provided for the incrementBy function whereas the sampling rate is there for the increment function.

Is there any limitation or restriction on dogstatsd side regarding the sample_rate when the increment and decrement is not equal to 1? I am not able to find this in any of the datadog docs.

Thanks,

Sam Roberts

unread,
Jul 5, 2015, 9:04:15 PM7/5/15
to nod...@googlegroups.com
I think the sample rate for counter is assumed to be by "a single
sample", and if you are incrementing or decrementing by values greater
than 1, and using a sample rate, it would confuse the server, which
basically takes the values it receives for a data point, and
multiplies them by the inverse of the sampling rate to estimate what
the "real" value was, before down sampling.

If you are doing this by values greater than/less than 1, that
calculation would be meaningless.

Sam
Reply all
Reply to author
Forward
0 new messages