Graphite will only display data for the past 24 hours

David Eyk picture David Eyk · Feb 22, 2013 · Viewed 7.9k times · Source

Here's the display for a stat for the past 24 hours (in Graphite Composer):

Past 24 hours

Here's the display for a stat for the "past 14 days":

enter image description here

Not much difference there. I cannot convince Graphite to display any data for any period past the past 24 hours.

Here are the relavent entries from storage-schemas.conf (I'm using StatsD):

[stats]
pattern = ^stats.*
retentions = 10:2160,60:10080,600:262974

[stats_counts]
pattern = ^stats_counts.*
retentions = 10:2160,60:10080,600:262974

and my storage-aggregation.conf:

[min]
pattern = \.min$
xFilesFactor = 0
aggregationMethod = min

[max]
pattern = \.max$
xFilesFactor = 0
aggregationMethod = max

[sum]
pattern = \.count$
xFilesFactor = 0
aggregationMethod = sum

[default_average]
pattern = .*
xFilesFactor = 0
aggregationMethod = average

I have five or so days of data captured so far. What am I missing?

EDITED to add:

I guess I should mention that I started out with the default storage-schemas.conf and only yesterday rebuilt my whisper database files to match the above configuration. I don't think this should be relevant, but there it is.

UPDATED:

I'm using 0.9.10 of graphite-web and whisper, from PyPI, released in May 2012.

Answer

David Eyk picture David Eyk · Mar 22, 2013

Well, this is what I get for not pasting the entire configuration. Here's what it actually looked like:

[carbon]
pattern = ^carbon\.
retentions = 60:90d

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

[stats]
pattern = ^stats.*
retentions = 10:2160,60:10080,600:262974

[stats_counts]
pattern = ^stats_counts.*
retentions = 10:2160,60:10080,600:262974

Of course, the [default_1min_for_1day] section was matching first, ahead of the other two, and so I was only getting data for the past 24 hours. Moving the catch-all to the end of the file seems to have addressed the issue.