Graphite总结了返回不一致的数据

时间:2013-09-24 20:05:51

标签: graphite statsd graphite-carbon

我已经设置了一个使用carbon-relay连接的双节点Graphite群集:

Graphite cluster

我在约1分钟的时间内,在大约60/10秒内为我的指标cluster-test-500发送了500个计数器。

根据我的汇总规则:

Meta data:
  aggregation method: sum
  max retention: 31536000
  xFilesFactor: 0

Archive 0 info:
  offset: 52
  seconds per point: 10
  points: 2160
  retention: 21600
  size: 25920

Archive 1 info:
  offset: 25972
  seconds per point: 60
  points: 10080
  retention: 604800
  size: 120960

Archive 2 info:
  offset: 146932
  seconds per point: 600
  points: 52560
  retention: 31536000
  size: 630720

数据出现在两个节点的Whisper DB中:

data:
12
63
61
62
63
60
61
57
0

data:
261
239
0

data:
500
0

然后,当我在过去一天使用summarize函数查询Graphite时:

http://graphite.mysite.com/render?target=summarize(stats.counters.cluster-test-500.*.*.*.count,"1day","sum","False")&format=json&tz=UTC&from=18:00_20130923&until=18:00_20130924

只需重新运行相同的查询即可返回不一致的结果:

[{"target": "summarize(stats.counters.cluster-test-500.count, \"1day\", \"sum\", true)", "datapoints": [[302.0, 1379959260]]}]
[{"target": "summarize(stats.counters.cluster-test-500.count, \"1day\", \"sum\", true)", "datapoints": [[500.0, 1379959260]]}]
[{"target": "summarize(stats.counters.cluster-test-500.count, \"1day\", \"sum\", true)", "datapoints": [[261.0, 1379959260]]}]
[{"target": "summarize(stats.counters.cluster-test-500.count, \"1day\", \"sum\", true)", "datapoints": [[63.0, 1379959260]]}]

这似乎是由WhisperDB文件中看似随机的时间段汇总造成的。究竟是什么造成了这个?

0 个答案:

没有答案