Creates a new client instance
Creates a new client instance
the host to send metrics to, defaults to localhost
the port to send metrics to, defaults to 8125
A prefix to add to all metric names. A period will be added to the end, resulting in prefix.metricname.
A sample rate default to be used for all metric methods. Defaults to 1.0
True if you want the client to asynch, false for blocking!
If false, any SocketException
s will be swallowed silently
Emit a counter metric.
Emit a counter metric.
The name of the metric
The value of the metric, or how much to increment by
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
Emit a decrement metric.
Emit a decrement metric.
The name of the metric
The value of the metric, or how much to decrement by. Defaults to -1
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
Emit a gauge metric.
Emit a gauge metric.
The name of the metric
The value of the metric, or current value of the gauge
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
Emit an increment metric.
Emit an increment metric.
The name of the metric
The value of the metric, or the amount to increment by. Defaults to 1
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
Emit a meter metric.
Emit a meter metric.
The name of the metric
The value of the meter
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
Emit e a set metric.
Emit e a set metric.
The name of the metric
The item to add to the set
Explicitly shut down the client and it's underlying bits.
Explicitly shut down the client and it's underlying bits.
Emit a timer metric.
Emit a timer metric.
The name of the metric
The rate at which to sample this metric.
If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.
A StatsD client! You should create one of these and reuse it across your application.