more readable syntax for declaring whisper data collection rates
Bug #697896 reported by
Jon Stevens
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-
Changed in graphite: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.