eric/metriks — pull request #15 by lmarburger (2012-06-27 21:21:22+00:00)
Title: Floor reporting time in Reporter::LibratoMetrics

I talked with Librato about charts being off when submitted by multiple sources and viewed at a resolution greater than the reporting time.

For example, I have a meter that reports the throughput of several web servers every minute. I create an instrument summing the data and view a 60m chart (raw resolution).

![](http://cl.ly/421v302P1v1a1p0e3L12/content)

See the difference of a 3 hour chart which has a 1m resolution.

![](http://cl.ly/3P1n1n2c2q3N1A1y2V3S/content)

Regarding the code itself, I like injecting the current time into `#prepare_metric` but I'm not too thrilled that I'm testing what is effectively a private method. I'm more than happy to make whatever changes you think would be best.