- 我下载了 statsd 和石墨 0.9.x
- 我使用了 statsd 源提供的 stats-client,如下所示:
./statsd-client.sh 'development.com.alpha.operation.testing.rate:1|c'
- 我做了10次以上的操作。
然后我尝试查询过去 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]]}]
为什么我得到 0.0?甚至 Graphite Composer 也不显示任何内容
当我执行了 10 次操作时,我期望值为“10”。我做错了什么?
存储架构.conf
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[default_1min_for_1day]
pattern = .*
retentions = 60s:1d
请帮我理解问题。
编辑:
根据下面的答案,我更改了存储聚合,并在 metric_file.wsp 上运行了whisper-info 后得到了以下响应。但是我仍然在数据点中获得“0.0”作为值,并且石墨浏览器不显示任何内容。
maxRetention: 86400
xFilesFactor: 0.0
aggregationMethod: sum
fileSize: 17308
Archive 0
retention: 86400
secondsPerPoint: 60
points: 1440
size: 17280
offset: 28
我还按照另一个答案中的建议查看了 stats_counts Tree,但它是一样的。
我的设置有什么问题。我对所有内容都使用默认设置,但下面的存储聚合中的答案建议的更改