graphite storage scheme

Asked by kumar on 2016-02-12


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

pattern = .*
retentions = 60s:1d

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

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Solved by:
Denis Zhdanov
Last query:
Last reply:
Denis Zhdanov (deniszhdanov) said : #1


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

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

below my storage.scheme.config:
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 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.