gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Gauges tick on first event, rather than at start of tick period #32

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by KieranP Sunday Sep 30, 2012 at 21:18 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/103


I had several gauges for per hour, per day, and per week. I deployed it about 4:30pm Thursday. Now they all tick over at 4pm or on Thursday.

e.g. per hour ticks over at 30 minutes into the hour instead of on the hour e.g. per day ticks over at 4pm, not 12am e.g. per week ticks over on Thursday, not Monday

The tick needs to be at the start of the tick. e.g. 1.day == 1.day.beginning_of_day