etsy/statsd — pull request #114 by mrtazz (2012-07-08 19:17:24+00:00)
Title: Add StatsD type stats gathering to stats.js

For a stats gathering daemon we don't do a particularly good job recording how StatsD itself is performing. There is the stats interface which gives a rough overview but is only available via the management port. But since we are already flushing stats to the graphing backends, why not also do it for StatsD stats.

For timings we are using the `microtime` npm module for now. Starting with the `0.8.0` release there is `process.hrtime()` which can be used to get sub millisecond timings. However this release is pretty new and not everybody might be using it already. We can still swap this later.