【发布时间】:2014-12-26 05:57:29
【问题描述】:
首先。我创建了一个rrd数据库
$ rrdtool create test.rrd --start 1200000000 --step 300 DS:test_1:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:12
第二。做一些更新
$ rrdtool update test.rrd 1200000100:1
$ rrdtool update test.rrd 1200000400:3
$ rrdtool update test.rrd 1200000700:4
$ rrdtool update test.rrd 1200001000:5
第三。从 test.rrd 中获取数据
$ rrdtool fetch test.rrd -r 300 -s 1200000000 -e 1200001000 AVERAGE
为什么 1200000300 是 2.333?
【问题讨论】:
-
既然您提到它,您能提供您的输出吗?
-
它是从输入数据中插值的。
标签: rrdtool