A statsd client for D
To use this package, run the following command in your project's root directory:
What is statsd4d ?
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.
statsd4d is provided as a dub package and as such all its standard operations are supported. Compiled binaries are located in the .build subfolder.