这里有一个类似的问题: 尽管我的问题不一样,但在此处输入链接描述。
/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 :这是 2017 年 1 月 1 日的时间戳
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
然后它起作用了,我可以看到不同日期的指标,这里可能发生了什么?
应该重新启动哪些服务或如何清理/重置耳语数据库?