在使用 StatsD 和 Graphite 时,我在查看stats_counts.*
不同时间范围内的相同指标值时遇到了问题:
从上面的图表中可以看到,选择更大的时间范围时,相同的测量数据正在不同。
我会理解由于 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
知道可能出了什么问题吗?也许我错过了一个配置?