https://github.com/tim-group/java-statsd-client
a java statsd client library
https://github.com/tim-group/java-statsd-client
Last synced: 3 months ago
JSON representation
a java statsd client library
- Host: GitHub
- URL: https://github.com/tim-group/java-statsd-client
- Owner: tim-group
- License: other
- Created: 2012-06-07T14:58:43.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T15:45:23.000Z (over 2 years ago)
- Last Synced: 2025-11-20T21:05:17.867Z (8 months ago)
- Language: Java
- Size: 931 KB
- Stars: 276
- Watchers: 21
- Forks: 137
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-java - Java StatsD Client
README
java-statsd-client
==================
[](https://travis-ci.org/tim-group/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](http://search.maven.org/#search%7Cga%7C1%7Cg%3Acom.timgroup%20a%3Ajava-statsd-client).
```xml
com.timgroup
java-statsd-client
3.0.1
```
Usage
-----
```java
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");
}
}
```