Description

A statsd client for D

Package Information

Version1.0.0-beta (2015-Feb-15)
Homepagehttp://www.github.com/daehlith/statsd4d/
Repositoryhttps://github.com/daehlith/statsd4d
LicenseMIT
AuthorsThomas Daehling
Registered byThomas Daehling
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

What is statsd4d ?

statsd4d is a statsd client for the D programming language.

Usage

Quickly, to use:

import statsd;
auto c = new statsd.StatsClient(); // connect to a statsd server running on "localhost" at the default port 8125.
c.incr("foo"); // increment the "foo" counter.
c.timing("stats.timed", 320); // Record a 320 ms "stats.timed".

You can also prefix all your stats:

import statsd;
auto c = new statsd.StatsClient("localhost", 8125, "foo");
c.incr("bar"); // Will be "foo.bar" in statsd/graphite.

Building

statsd4d is provided as a dub package and as such all its standard operations are supported. Compiled binaries are located in the .build subfolder.

References

Available versions

1.0.0-beta ~master ~feature/VibeDSockets