retention config in storage-schemas.conf

Asked by Michael Barrett

I am setting up whisper & carbon and I used this page to set up my storage-schemas.conf: http://graphite.wikidot.com/getting-your-data-into-graphite

I decided on the following schema:
[default]
priority = 100
pattern = .*
# 300 seconds for 13 months, 30 minutes for 10 years
retentions = 300:116064,1800:178560

Unfortunately it seems like the documentation is wrong. Rather than this being the case (from: http://graphite.wikidot.com/getting-your-data-into-graphite):

"Each retention configuration is of the form seconds_per_data_point:data_points_to_store."

It appears that each retention configuration is of the form seconds_per_data_point:total_retention_time

The reason I say that is that I threw some debug code into the whisper module (0.9.7) to print out the arguments passed to the 'create' function, and I got the following arguments with the config above:

create called with: /opt/graphite/storage/whisper/servers/prod-djcore-www1/apache2/qps.wsp, [(300, 386), (1800, 99)], 0.5

Is this a bug or an issue with the documentation?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Barrett
Solved:
Last query:
Last reply:
Revision history for this message
Michael Barrett (loki77) said :
#1

Oh, and this is using carbon 0.9.7 as well. And I forgot the third option: Maybe I'm just not understanding something, and if that's the case I'm happy to learn that as well :) Thanks.

Revision history for this message
Nicholas Leskiw (nleskiw) said :
#2

There's an issue, upgrade to trunk and let us know if that helped.

-Nick

On Mar 28, 2011, at 5:04 PM, Michael Barrett <email address hidden> wrote:

> Question #150825 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/150825
>
> Michael Barrett gave more information on the question:
> Oh, and this is using carbon 0.9.7 as well. And I forgot the third
> option: Maybe I'm just not understanding something, and if that's the
> case I'm happy to learn that as well :) Thanks.
>
> --
> 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 : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Michael Barrett (loki77) said :
#3

I'm actually using the package provided by pypi:

http://pypi.python.org/pypi/carbon/0.9.7

Is the only good version gotten directly from trunk?

Revision history for this message
Nicholas Leskiw (nleskiw) said :
#4

I've put a note in the Wikidot install doc letting new users know they should install from trunk, so hopefully this will prevent some confusion.

-Nick

On Mar 28, 2011, at 5:15 PM, Nicholas Leskiw <email address hidden> wrote:

> Question #150825 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/150825
>
> Status: Open => Answered
>
> Nicholas Leskiw proposed the following answer:
> There's an issue, upgrade to trunk and let us know if that helped.
>
> -Nick
>
> On Mar 28, 2011, at 5:04 PM, Michael Barrett
> <email address hidden> wrote:
>
>> Question #150825 on Graphite changed:
>> https://answers.launchpad.net/graphite/+question/150825
>>
>> Michael Barrett gave more information on the question:
>> Oh, and this is using carbon 0.9.7 as well. And I forgot the third
>> option: Maybe I'm just not understanding something, and if that's the
>> case I'm happy to learn that as well :) Thanks.
>>
>> --
>> 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 : <email address hidden>
>> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Michael Barrett (loki77) said :
#5

Ok - yeah, not sure how you could make sure that folks don't accidentally use the PyPI version. Anyway, thanks for the swift response!

Revision history for this message
Glenn Rempe (grempe) said :
#6

Can you tell us if this issue is resolved in the 0.9.8 (4/3/11) release?

Revision history for this message
chrismd (chrismd) said :
#7

Yes this issue is fixed in 0.9.8