a java statsd client library
Go to file
scarytom be0b4fd1f0 extract a class for the UDP sending, making it easier to play with batching implementations for issue #15 2014-08-26 18:02:42 +01:00
.settings initial checkin 2012-06-07 15:39:40 +01:00
src extract a class for the UDP sending, making it easier to play with batching implementations for issue #15 2014-08-26 18:02:42 +01:00
vendor initial checkin 2012-06-07 15:39:40 +01:00
.classpath initial checkin 2012-06-07 15:39:40 +01:00
.gitignore initial checkin 2012-06-07 15:39:40 +01:00
.project initial checkin 2012-06-07 15:39:40 +01:00
.travis.yml add travis yaml file for issue #24 2014-08-12 10:10:59 +01:00
LICENSE tomd: prepare for v3.0 release 2014-07-28 11:27:40 +01:00
README.md update README for latest revision 2014-08-12 10:15:19 +01:00
build.xml bump version number in preparation for a release 2014-08-18 09:12:54 +01:00
java-statsd-client.pom tomd: correct repo urls following github org rename 2014-07-28 14:18:59 +01:00

README.md

java-statsd-client

Build Status

A statsd client library implemented in Java. Allows for Java applications to easily communicate with statsd.

Downloads

The client jar is distributed via maven central, and can be downloaded here.

<dependency>
    <groupId>com.timgroup</groupId>
    <artifactId>java-statsd-client</artifactId>
    <version>3.0.1</version>
</dependency>

Usage

import com.timgroup.statsd.StatsDClient;
import com.timgroup.statsd.NonBlockingStatsDClient;

public class Foo {
  private static final StatsDClient statsd = new NonBlockingStatsDClient("my.prefix", "statsd-host", 8125);

  public static final void main(String[] args) {
    statsd.incrementCounter("bar");
    statsd.recordGaugeValue("baz", 100);
    statsd.recordExecutionTime("bag", 25);
    statsd.recordSetEvent("qux", "one");
  }
}