Graphite storing only 24hours data in whisper files

Asked by Madhurranjan


We've a rule in the configuration file that looks like this :

priority = 100
pattern = ^B\.Met\.*
retentions = 600:395d

We expect this to hold so many data points in the wsp file . When we do a on the file , we get Passed.wsp
maxRetention: 34128000
xFilesFactor: 0.0
aggregationMethod: average
fileSize: 1365148

Archive 0
retention: 34128000
secondsPerPoint: 300
points: 113760
size: 1365120
offset: 28

We see above that there should be 113760 points overall in the whisper file but what we're noticing is that the number of data points in that file when I do a " < > | wc -l " gives exactly 288 points , which at a 5 minute interval is exactly 1 day. Graphite shows the related graphing for previous days but another tool that we're using in order to query Graphite gets information for just the last day because of whisper .

How do we make sure it stores all the points and not just the last 24 hours inspite of whisper-info showing the correct information?


Question information

English Edit question
Graphite Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Michael Leinartas (mleinartas) said :
#1 will by default only fetch the last 24 hours worth of points. You can fetch a different range by specifying --from and --to

In your case, to get the entire archive you can use: --from $(($(date '+%s')-1312149104)) <file>
Where 1312149104 is the maxRetention above. You may also be interested in looking at which gives a raw dump of the file's data.

Revision history for this message
Madhurranjan (mohanma) said :

Thanks for the answer! Definitely very helpful.