gpt4 book ai didi

Graphite只会显示过去24小时的数据

转载 作者:行者123 更新时间:2023-12-02 13:34:28 28 4
gpt4 key购买 nike

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

Past 24 hours

以下是“过去 14 天”的统计数据显示:

enter image description here

没有太大区别。我无法说服 Graphite 显示过去 24 小时内任何时间段的任何数据。

以下是来自 storage-schemas.conf 的相关条目(我使用的是 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

到目前为止,我已经捕获了五天左右的数据。我错过了什么?

已编辑添加:

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

更新:

我使用的是 PyPI 的 0.9.10 版本的 Graphite-Web 和 Whisper,于 2012 年 5 月发布。

最佳答案

嗯,这就是我没有粘贴整个配置所得到的结果。这是它的实际样子:

[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 小时的数据。将所有内容移至文件末尾似乎已经解决了该问题。

关于Graphite只会显示过去24小时的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15030063/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com