I would like to have graph with 1 point per day for 1 year - retentions settings

Asked by Wawrzyniec Niewodniczański

What are the right settings for having graph with one point per day with 1 year retention. I added following lines in storage-schemas.conf

[rebuilds]
patter = ^rebuilds\.
retentions = 1d:365d

and not sure it work. I would expect in:
http://my-graphite/render?target=rebuilds.*.*.*.*.*.*&format=raw
see something else than what I see now:

rebuilds._metric-name,1344350700,1344437100,60|None... (many times None and nothing else)

I understand that above indicates standard retentions: 1 day, points for each minute (60 seconds).

One more thing. How to render a graph with one Xpoint per day?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Wawrzyniec Niewodniczański
Solved:
Last query:
Last reply:
Revision history for this message
Nicholas Leskiw (nleskiw) said :
#1

Retentions only applies to new files. For existing metrics, you must either use the whisper-resize.py utility that comes with whisper or erase the files and allow Carbon to re-create them.

-Nick

Wawrzyniec Niewodniczański <email address hidden> wrote:

>New question #205309 on Graphite:
>https://answers.launchpad.net/graphite/+question/205309
>
>What are the right settings for having graph with one point per day with 1 year retention. I added following lines in storage-schemas.conf
>
>[rebuilds]
>patter = ^rebuilds\.
>retentions = 1d:365d
>
>and not sure it work. I would expect in:
>http://my-graphite/render?target=rebuilds.*.*.*.*.*.*&format=raw
>see something else than what I see now:
>
>rebuilds._metric-name,1344350700,1344437100,60|None... (many times None and nothing else)
>
>I understand that above indicates standard retentions: 1 day, points for each minute (60 seconds).
>
>
>--
>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
Wawrzyniec Niewodniczański (wawrzek) said :
#2

I removed all files before posting this message, so there should be no problem with any existing definition.

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) said :
#3

I think why it doesn't work as expected:

20/08/2012 07:30:01 :: new metric rebuilds.uk.UK38-7.uk-vt-38.### matched schema default_1min_for_1day
20/08/2012 07:30:01 :: new metric rebuilds.uk.UK38-7.uk-vt-38.### matched aggregation schema default

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) said :
#4

when my definition is:

[rebuilds]
patter = ^rebuilds\.
retentions = 1d:365d

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) said :
#5

I fixed pattern definition.