0

在使用 StatsD 和 Graphite 时,我在查看stats_counts.*不同时间范围内的相同指标值时遇到了问题:

20分钟分辨率

2小时分辨率

从上面的图表中可以看到,选择更大的时间范围时,相同的测量数据正在不同。

我会理解由于 Whisper 的存储聚合方案用于旧数据而导致的准确性松散,但这并不能解释最近的数据是如何显示的,就像它在不同的时间范围内具有不同的值一样。

只是为了记录,我的schema_aggregation.conf样子是这样的:

[munin]
pattern = ^munin\..*
xFilesFactor = 0
aggregationMethod = average

[min]
pattern = \.lower$
xFilesFactor = 0.1
aggregationMethod = min

[max]
pattern = \.upper$
xFilesFactor = 0.1
aggregationMethod = max

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

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

[count_legacy]
pattern = ^stats_counts.*
xFilesFactor = 0
aggregationMethod = sum

[logster]
pattern = ^logster\..*
xFilesFactor = 0
aggregationMethod = sum

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

我的storage-schemas.conf

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

[munin]
pattern = ^munin\..*
retentions = 10s:6h,1min:7d,10min:5y

[stats]
pattern = ^stats\..*
retentions = 10s:6h,1min:7d,10min:1y

[stats_counts]
pattern = ^stats_counts\..*
retentions = 10s:6h,1min:7d,10min:1y

[logster]
pattern = ^logster\..*
retentions = 60s:12h,10m:1y

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

知道可能出了什么问题吗?也许我错过了一个配置?

4

1 回答 1

2

看起来您遇到了常规的 Graphite 行为,当您的 x 轴数据点多于图形中的像素时,它会平均 y 值(因为 2h 的数据有 720 个数据点)。当您查看图表时也会发生这种情况&width=1000吗?

于 2013-10-04T03:16:11.750 回答