NOTE: Assumes socket is in connected state, and that it remain so until this object is destroyed. If the socket is or becomes disconnected, metrics will be dropped.
Emits a simple counter metric. At each flush, a StatsD daemon will send the current count to an APM, and reset the count to 0.
Equivalent to count(key, -1, frequency).
Emits a gauge which maintains its value until it is next set.
Equivalent to count(key, 1, frequency).
(Re-)seeds the random number generator used to sample metrics.
Emits a set metric. A StatsD daemon will count unique occurrences of each value between flushes.
Emits a timing metric in milliseconds. A StatsD daemon will produce a histogram of these timings with a rollup duration equal to its flush interval.
A simple client for the StatsD protocol.