Graphite Carbon仅显示过去24小时的指标

时间:2017-04-30 00:03:23

标签: metrics graphite grafana graphite-carbon

这里有一个类似的问题: enter link description here 虽然我的问题不一样。

/etc/carbon/storage-schemas.conf

[carbon]
pattern = ^carbon\.
retentions = 60:90d

[test]
pattern = ^test\.
retentions = 1h:100d

[default_1min_for_1day]
pattern = .*
retentions = 60s:1d

发送指标:

使用: echo test.count 145.0日期-d 2017-04-29T22:34:35 +“%s”| nc -q0 127.0.0.1 2003

不起作用(超过24小时前) echo test.count 145.0 `date -d 2017-04-28T22:34:35 +"%s"` | nc -q0 127.0.0.1 2003

窃窃私语: whisper-fetch --pretty --from=1483261475 /var/lib/graphite/whisper/test/count.wsp

* 1483261475:这是1/1/2017的时间戳

Fri Apr 28 21:00:00 2017    None
Fri Apr 28 22:00:00 2017    None
Fri Apr 28 23:00:00 2017    None
...
Sat Apr 29 16:00:00 2017    None
Sat Apr 29 17:00:00 2017    None
Sat Apr 29 18:00:00 2017    None
Sat Apr 29 19:00:00 2017    None
Sat Apr 29 20:00:00 2017    1000.000000
Sat Apr 29 21:00:00 2017    None
Sat Apr 29 22:00:00 2017    145.000000
Sat Apr 29 23:00:00 2017    None

耳语信息whisper-info /var/lib/graphite/whisper/test/count.wsp

maxRetention: 8640000
xFilesFactor: 0.0
aggregationMethod: sum
fileSize: 28828

Archive 0
retention: 8640000
secondsPerPoint: 3600
points: 2400
size: 28800
offset: 28

现在,如果我使用其他部分并将保留设置为: retentions = 10:2160,60:10080,600:262974

然后它有效,我能够看到不同日期的指标,这里可能会发生什么?

应重新启动哪些服务或如何清理/重置耳语DB?

0 个答案:

没有答案