Skip to content

An extension of tim-group/java-statsd-client that registers tasks using the Bukkit API.

License

Notifications You must be signed in to change notification settings

minotopiame/bukkit-statsd-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bukkit-statsd-client

Build Status

A statsd client library implemented in Java. Allows for Bukkit plugins to easily communicate with statsd. Fork of tim-group/java-statsd-client.

Downloads

The client jar is distributed via a custom Maven repository.

<repositories>
  <repository>
    <id>xxyy-repo</id>
    <url>https://repo.l1t.li/public-all/</url>
  </repository>
</repositories>
<dependencies>
  <dependency>
    <groupId>me.minotopia</groupId>
    <artifactId>bukkit-statsd-client</artifactId>
    <version>1.1.0</version>
  </dependency>
</dependencies>

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

About

An extension of tim-group/java-statsd-client that registers tasks using the Bukkit API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages