[rrd-users] PREDICT: How does it work?

Etienne-Marie de Boissieu emdeboissieu at gmail.com
Wed Oct 20 15:21:59 CEST 2010


More precisely with an example :

rrdtool create example/example.rrd             \
             --start 1000000000         \
             --step 1 \
              DS:consoelec:COUNTER:2:U:U   \
              RRA:AVERAGE:0.5:1:10       \

rrdtool update example/example.rrd 1000000001:1
rrdtool update example/example.rrd 1000000002:2
rrdtool update example/example.rrd 1000000003:4
rrdtool update example/example.rrd 1000000004:7
rrdtool update example/example.rrd 1000000005:8
rrdtool update example/example.rrd 1000000006:10
rrdtool update example/example.rrd 1000000007:13
rrdtool update example/example.rrd 1000000008:14
rrdtool update example/example.rrd 1000000009:15
rrdtool update example/example.rrd 1000000010:17

rrdtool graph example.png --start 1000000001 --end 1000000015 --x-grid
SECOND:1:SECOND:5:SECOND:10:0:%s DEF:x=example/example.rrd:consoelec:AVERAGE

CDEF:predict=2,-2,1,x,PREDICT LINE1:x#00FF00:conso
LINE2:predict#0000FF:predict

At t=1000000011, my computation is : Average between 1 (value between
1000000007 and 1000000008) and 1 (value between 1000000004 and 1000000005) =
1.
Or in the graph, value at t=1000000011 is aproximately 1.55 .

( graph on http://yfrog.com/47examplerp )

Where is my mistake?

Thanks


Etienne Marie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20101020/fb50343e/attachment.htm 


More information about the rrd-users mailing list