石墨将仅显示过去24小时的数据 [英] Graphite will only display data for the past 24 hours

查看:104
本文介绍了石墨将仅显示过去24小时的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是过去24小时内的统计数据显示(在Graphite Composer中):

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

以下是过去14天"的统计信息显示:

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

那里差别不大.我不能说服Graphite显示过去24小时内任何时期的任何数据.

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

以下是storage-schemas.conf中的相关条目(我正在使用StatsD):

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

和我的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?

已编辑以添加:

我想我应该提到我从默认的storage-schemas.conf开始,直到昨天才重建了我的耳语数据库文件以匹配上述配置.我不认为这应该相关,但是确实存在.

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.

已更新:

我使用的是PyPI于2012年5月发布的0.9.10石墨网和耳语.

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

推荐答案

好吧,这是我没有粘贴整个配置的结果.这实际上是 的样子:

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

当然,[default_1min_for_1day]部分首先匹配,然后是其他两个,所以我只获取了过去24小时的数据.将包罗万象的文件移到文件末尾似乎已经解决了这个问题.

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.

这篇关于石墨将仅显示过去24小时的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆