Skip to content

Repository files navigation

java-statsd-client

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>2.0.0</version>
</dependency>

Usage

importcom.timgroup.statsd.StatsDClient;
importcom.timgroup.statsd.NonBlockingStatsDClient;
publicclassFoo {
privatestaticfinalStatsDClientstatsd = newNonBlockingStatsDClient("my.prefix", "statsd-host", 8125);
publicstaticfinalvoidmain(String[] args) {
statsd.incrementCounter("bar");
statsd.recordGaugeValue("baz", 100);
statsd.recordExecutionTime("bag", 25);
}
}

About

a java statsd client library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages