more readable syntax for declaring whisper data collection rates

Reported by Jon Stevens on 2011-01-05
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.

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
Jon Stevens (latchkey-gmail) wrote :

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

cheers,

jon

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

Other bug subscribers