graphite storage scheme

Asked by kumar on 2016-02-12

Hi,

Graphite is receiving data and displaying fine.But when i restart graphite-web/carbon-cache (when i deleted few data from whisper) ,i am not able to see old data.

My storage.scheme looks :
pattern = ^carbon\.
retentions = 60:90d

[default_1min_for_1day]
pattern = .*
retentions = 60s:1d

Request you to suggest what need to be done for storing my data.
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Denis Zhdanov
Solved:
2016-02-18
Last query:
2016-02-18
Last reply:
2016-02-15
Denis Zhdanov (deniszhdanov) said : #1

Hi,

Your retention scheme
retentions = 60s:1d
saying exactly that - it will store data every minute with 1 day only.
New data will owerwrite old data after 1 day period.
That's how it works.
You need to add more retentions, like

retentions = 60s:1d, 5m:30d, 15m:1y, 1h:10y

And no need to restart carbon for changing wsp files

kumar (dvrkittu) said : #2

Thanks
I changed as you said., but still not able to see old data after changing the time period

below my storage.scheme.config:
[default_1min_for_1day]
pattern = .*
retentions = 60s:1d, 5m:30d, 15m:1y, 1h:10y

Please help me in troubleshooting

Thanks in advance

Best Denis Zhdanov (deniszhdanov) said : #3

This change will not change your existing data. You need to delete and recreate your wsp files first or use whisper-resize - run something like
whisper-resize.py bla.wsp 60s:1d 5m:30d 15m:1y 1h:10y
across all of your wsp files

kumar (dvrkittu) said : #4

Thanks a lot

It resolved my porblem

kumar (dvrkittu) said : #5

Thanks Denis Zhdanov, that solved my question.