http://code.dlang.org/packages/dstatsd
StatsD allows to collect statistics about any application by
using counters, gauges and more through UDP.
Usage:
auto s = new StatsD("127.0.0.1", 1234, ""); // connect to statsd
server
s(Counter("Foo")); // increment counter "Foo"
s.inc("Bar"); // increment counter "Foo"
s(Counter("Args"), // send stats to Args, H, and timeA
Counter("H", someIntValue), // in one UDP message
Timer("timeA", someTimeInMS)
);
{
auto a = ScopeTimer("args", s); // automatic time collection
}