Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a java statsd client library
branch: master

This branch is 2 commits ahead, 57 commits behind tim-group:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
src
vendor
.classpath
.gitignore
.project
LICENSE
README.md
build.xml
java-statsd-client.pom
pom.xml

README.md

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

Usage

import com.timgroup.statsd.StatsDClient;

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

  public static final void main(String[] args) {
    statsd.incrementCounter("bar");
    statsd.recordGaugeValue("baz", 100);
    statsd.recordExecutionTime("bag", 25);
  }
}
Something went wrong with that request. Please try again.