bitly/statsdaemon

Old buckets are never purged

JensRantil opened this issue · 7 comments

I'm reading the code right now and notice that older buckets are never purged. Untouched buckets should probably have some kind of TTL. This is especially important for autogenerated counters. Creating this issue to make you aware of this. Please close if it's a non-issue.

For counters, this is probably a simple fix. I believe, a delete(counters, s) call could be added here.

closed by #16

This issue is not fully fixed. Only for counters.

oops

It might be possible to re-use the approach to purging counters in #41 to clean up gauges and other metrics too.

Happy to look into this if everyone's happy with #41 and it gets merged in to master.

I submitted #51 to purge timers. Gauges now need to be persisted to allow for relative gauge operations so I think this is done.

resolved in #51