[rrd-users] RRDtool spread values by time on rrd, how to turn off this behavior?
tobi at oetiker.ch
Wed Apr 18 00:15:16 CEST 2012
Yesterday Daniel Hilst wrote:
> On 04/16/2012 01:19 PM, Daniel Hilst wrote:
> > When I do an update on some rrd file the rrdtool -- or something --
> > spread my input value by time.
> > Here is how I reproduce:
> > 1) Create my rrd with this command
> > rrdtool create --step 10 test.rrd DS:v:GAUGE:600:U:U RRA:AVERAGE:0.5:1:50
> > 2) The feed it with:
> > rrdtool update test.rrd 1334578211:10
> > rrdtool update test.rrd 1334578221:0
> > I get
> > 1334578210 9.000000
> > 1334578220 1.000000
> > The RRDtool have spread my values, so 9 + 1 = 10, Its cool, but some
> > times I want 10, then 0.. Is there a way to turn this feature off for
> > specific rrd file?
> > If update rrd on 10 multiples then it works as I expect, so If I did:
> > rrdtool update test.rrd 1334578210:10
> > rrdtool update test.rrd 1334578220:0
> > I would get
> > 1334578210 10.000000
> > 1334578220 0.000000
> > I'm using collectd so I cant round up epoch..
> > Thanks in advance!
> > Cheers!
> My solution was create a patch to collectd to round up the epoch before
> Here is if is of any interest :)
question: why would you want to lie about the data you acquired?
if you need higher precision, then you need to up your sampling
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users