java-statsd-client

A tiny library allowing Java applications to communicate with statsd instances easily.

License

License

Categories

Categories

Java Languages CLI User Interface
GroupId

GroupId

com.timgroup
ArtifactId

ArtifactId

java-statsd-client
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

java-statsd-client
A tiny library allowing Java applications to communicate with statsd instances easily.
Project URL

Project URL

http://github.com/tim-group/java-statsd-client
Source Code Management

Source Code Management

http://github.com/tim-group/java-statsd-client

Download java-statsd-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.timgroup/java-statsd-client/ -->
<dependency>
    <groupId>com.timgroup</groupId>
    <artifactId>java-statsd-client</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.timgroup/java-statsd-client/
implementation 'com.timgroup:java-statsd-client:3.1.0'
// https://jarcasting.com/artifacts/com.timgroup/java-statsd-client/
implementation ("com.timgroup:java-statsd-client:3.1.0")
'com.timgroup:java-statsd-client:jar:3.1.0'
<dependency org="com.timgroup" name="java-statsd-client" rev="3.1.0">
  <artifact name="java-statsd-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.timgroup', module='java-statsd-client', version='3.1.0')
)
libraryDependencies += "com.timgroup" % "java-statsd-client" % "3.1.0"
[com.timgroup/java-statsd-client "3.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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");
  }
}
com.timgroup

TIM Group

Versions

Version
3.1.0
3.0.2
3.0.1
3.0.0
2.0.0
1.0.1