StatsD allows to collect statistics about any application by using counters, gauges and more through UDP.


auto s = new StatsD("", 1234, ""); // connect to statsd server

s(Counter("Foo")); // increment counter "Foo""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

Reply via email to