11

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.

David Eyk
  • 12,171
  • 11
  • 63
  • 103
  • Seems like UI issue in the Graphite Web App, did you solve it eventually? I would just do a referesh to the page... Notice that if you don't have information in Whisper in your 14 days period then the graph still have to show that period but with no "lines" in the graph... – Tomer Peled Mar 06 '13 at 06:31
  • Strange. It was briefly showing periods longer than 24 hours, and now it's back to only 24 hours. It's got to be a bug. – David Eyk Mar 08 '13 at 00:14
  • What versions of carbon & graphite are you running? We're seeing the same problem - some graphs exhibit it, others don't. – Darrell Mozingo Mar 13 '13 at 13:46
  • Both are at 0.9.10, the latest release on PyPI. – David Eyk Mar 13 '13 at 17:02
  • 1
    The storage schema is only read when whisper files are first created. If you changed it, you'd need to rebuild or delete the existing ones. Noticed you rebuilt them - did that fix your problem, or still the same thing? – Darrell Mozingo Mar 14 '13 at 23:57
  • Rebuilding did not seem to address the issue. Perhaps I should rebuild them again? – David Eyk Mar 16 '13 at 03:38
  • Or just delete them to be sure – Darrell Mozingo Mar 18 '13 at 15:24

1 Answers1

16

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.

David Eyk
  • 12,171
  • 11
  • 63
  • 103
  • I have been looking for help : http://stackoverflow.com/questions/20433697/graphite-returning-incorrect-datapoint – GJain Dec 06 '13 at 23:24
  • @David Eyk, I am facing something similar and cannot figure out what the problem is. I am trying to get hourly avg for month worth of data. Rather than getting hourly, I get 2 hours avg data. Any ideas what I might be doing? – user1471980 Feb 08 '15 at 17:10
  • @user1471980 Hard to say without seeing your config. I recommend asking a new question, and including a detailed description of what you're trying to do and your configuration. – David Eyk Feb 09 '15 at 15:18
  • @DavidEyk, what configuration your're refering to? /opt/graphite/webapp/graphite/settings.py? – user1471980 Feb 09 '15 at 15:22
  • @DavidEyk, I did ask this question, but not getting any response: http://stackoverflow.com/questions/28396297/how-do-you-get-hourly-avg-from-graphite-for-the-last-30-days – user1471980 Feb 09 '15 at 15:26
  • David, what is your retention actualy doing? `retentions = 10:2160,60:10080,600:262974` – Alg_D Apr 27 '17 at 22:07
  • No idea. :) I think it was a default thing, but I don't remember. I'm afraid the server I had graphite on melted down pretty thoroughly a few years ago, and I haven't bothered to give graphite another try. – David Eyk Apr 28 '17 at 03:40