← Back to team overview

graphite-dev team mailing list archive

Re: [Question #675575]: All of a sudden metrics getting lost

 

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

    Status: Open => Answered

Denis Zhdanov proposed the following answer:
Whisper (Graphite data storage format) was designed to have predictable disk usage.
So, retentions = 60s:1d means that Graphite will store datapoint for every 60 seconds and it will keep it for 1 day. It will not drop anything after 1 day, it will just update old points with new data, so, file size will be the same, but if you request more then 1 day of data you will get nothing.
So, if you was able to see the historical data before means that files before was created using different retention, not 60s:1d. I do not see any other explanation, so, probably retention was changed recently.
If you using retention 10s:14d, then it will store 1 datapoint every 10 seconds and it will keep data for 14 days, indeed. If you change 10s to 1s then file will be 10 times bigger.
Please check Whisper documentation for details - https://graphite.readthedocs.io/en/latest/whisper.html
You can use multiple archives if you want to balance file size and data retention, e.g.
retention = 10s:1d,60s:7d,5m:1y

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.