more readable syntax for declaring whisper data collection rates

Bug #697896 reported by Jon Stevens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
Undecided
Unassigned

Bug Description

You know what would be super rad is an more readable syntax for working with whisper.

whisper-resize.py 3600:87600

could be:

whisper-resize.py 1h:10y

This would also apply to the storage-schemas.conf file as well.

Revision history for this message
chrismd (chrismd) wrote :

I like this suggestion very much. I have added it to trunk, the supported units are 's' for seconds, 'm' for minutes, 'h' for hours, 'd' for days, and 'y' for years (defined as exactly 365 days, so not leap year aware). Months are ill-defined as a general unit of time so I'm not going to include them, use days or years instead.

Note that if you specify something like 10h:2d it will round down to 4 datapoints, only covering 40 hours.

Changed in graphite:
status: New → Fix Committed
Revision history for this message
Jon Stevens (latchkey-gmail) wrote :

chris. let me just say, i'm really impressed.

cheers,

jon

chrismd (chrismd)
Changed in graphite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.