我一直在尝试从 Whisper-info.py 输出中理解,这对我来说似乎有点神秘。
目前这是我的设置:
storage-schema.conf
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[stats]
pattern = ^stats.*
retentions = 30s:6h,1min:30d,10min:360d,30min:720d,1h:1825d,1d:1825d
[everything_else]
pattern = .*
retentions = 30s:6h,1min:30d,10min:360d,30min:720d,1h:1825d,1d:1825d
存储聚合.conf
[min]
pattern = \.lower$
xFilesFactor = 0.1
aggregationMethod = min
[max]
pattern = \.upper(_\d+)?$
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
[default_average]
pattern = .*
xFilesFactor = 0.3
aggregationMethod = average
我前面有 statsd,非常小的 localConfig.js
{
graphitePort: 2003,
graphiteHost: "127.0.0.1",
port: 8125,
flushInterval: 30000,
}
现在我向 stasd 发送一个数据包到一个全新的指标
echo "alex.foo:1|c" | nc -w1 -u 127.0.0.1 8125
这是whisper-info.py的输出:
# whisper-info.py /opt/graphite/storage/whisper/stats/alex/foo.wsp
maxRetention: 604800
xFilesFactor: 0.300000011921
aggregationMethod: average
fileSize: 120988
Archive 0
retention: 604800
secondsPerPoint: 60
points: 10080
size: 120960
offset: 28
当我显然有更多的保留设置时,为什么只有一个存档?我的架构规则不正确吗?输出的含义是什么?size 是文件大小吗?抵消?
感谢您花时间回答!