DStatsD - A fast, memory efficent, vibe.d compatible client for etsy's statsd.
Robert burner Schadek via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Oct 10 01:47:54 PDT 2016
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
}
More information about the Digitalmars-d-announce
mailing list