etsy/logster — pull request #18 by mrmanc (2012-05-14 20:38:04+00:00)
Title: MetricLogster recognises difference between counters and times

Jeff and I have been in discussion over improving the MetricLogster to support parsing of arbitrary counter and time like metrics. In the same way that StatsD performs aggregation over time metrics, the MetricLogster now records the mean, median and 90th percentile for time metrics, although other percentiles can be recorded using parser options. I have contributed code to calculate these aggregates without introducing a library dependency.

Time units are extracted to support those using a Ganglia front end.

Examples of conforming log lines now:

... METRIC_TIME metric=some.metric.time value=10ms
... METRIC_TIME metric=some.metric.time value=11ms
... METRIC_TIME metric=some.metric.time value=20ms
... METRIC_COUNT metric=some.metric.count value=1
... METRIC_COUNT metric=some.metric.count value=2.2