./statsd-client.sh 'development.com.alpha.operation.testing.rate:1|c'然后我尝试查询过去24小时的摘要:
http://example.com/render?format=json&target=summarize(stats.development.com.alpha.operation.testing.rate,"24hours","sum",true)&from = -24hours&tz = UTC
我得到1个数据点如下:
"datapoints": [[0.0, 1386277560]]}]
Run Code Online (Sandbox Code Playgroud)
为什么我得到0.0?甚至Graphite Composer也不会显示任何内容
当我执行10次操作时,我期待值为"10".我做错了什么?
存储schemas.conf
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[default_1min_for_1day]
pattern = .*
retentions = 60s:1d
Run Code Online (Sandbox Code Playgroud)
请帮我理解这个问题.
编辑:
根据下面的答案,我更改了存储聚合,并在metric_file.wsp上运行whisper-info后得到以下响应.但我仍然在数据点中获得"0.0"作为值,而Graphite浏览器不显示任何内容.
maxRetention: 86400
xFilesFactor: 0.0
aggregationMethod: sum
fileSize: 17308
Archive 0
retention: 86400
secondsPerPoint: 60
points: 1440
size: 17280
offset: 28
Run Code Online (Sandbox Code Playgroud)
我还看了另一个答案中建议的stats_counts树,但它是一样的.
我的设置有什么问题.我正在使用默认设置,除了存储聚合中下面的答案所建议的更改