← Back to team overview

graphite-dev team mailing list archive

Re: [Question #171240]: Invalid retention format?

 

Question #171240 on Graphite changed:
https://answers.launchpad.net/graphite/+question/171240

    Status: Open => Answered

Nicholas Leskiw proposed the following answer:
Try this and let us know if it works.

retentions = 10s:6h,1m:7d,10m:5y

A new testing script was created to validate these:
bin/validate-storage-schemas.py

I may change the detection from an index to a regex match ([0-9])([A-Za-z])
and add sec, min, day, w=7d and mon, (=30 days - I know it's a hack but
people are just expecting a "month" option)  so fewer people get nasty
surprises when changing this file.

On Thu, Sep 15, 2011 at 10:30 AM, Scott Smith <
question171240@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Question #171240 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/171240
>
> Scott Smith posted a new comment:
> In whisper.py the units available appear to be:
>
> UnitMultipliers = {
>  's' : 1,
>  'm' : 60,
>  'h' : 60 * 60,
>  'd' : 60 * 60 * 24,
>  'y' : 60 * 60 * 24 * 365,
> }
>
> So if you want to specify a week, use 7d.
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to     : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.