[rrd-developers] Introducing: rrd modify

Tobias Oetiker tobi at oetiker.ch
Wed Mar 5 00:28:32 CET 2014


Hi Peter,

Yesterday Peter Stamfest wrote:

> Am 2014-02-27 22:50, schrieb Peter Stamfest:
> > Am 2014-02-27 12:38, schrieb Peter Stamfest:
> >> Am 2014-02-26 15:24, schrieb Tobias Oetiker:
> >>> Hi Peter,
> >>>
> >>> thanks ... its merged ...
> >>>
> >> Which leaves me to ask for feedback to the command syntax I invented.
> >> Currently the syntax is
> >>
> >> DEL:<ds-name>  for DS deletion and standard rrdcreate DS:<...> syntax
> >> for DS addition.
> >>
> >> - which made sense.
> >>
> >> When changing RRAs I'm thinking about:
> >>
> >> DELRRA:<index>   with <index> being the index spit out by rrdinfo for
> >> deletion and standard rrdcreate RRA:<....> syntax for RRA creation.
> >>
> >> Changing the number of rows for RRAs could be:
> >>
> >> RRA#<index>:[+-=]<number> to add/remove/set the number of RRA entries
> >>
> >> Doing automatic consolidation for modified RRAs will likely only work
> >> for AVERAGE, MIN, MAX, LAST   consolidation functions.
> > The rrdmodify-master branch should now contain the code  needed for
> > these operations. It received light testing. Currently NO consolidation
> > for newly added rows takes place.
> >
> >
>
> I have just pushed major changes to the rrdmodify-master branch. This
> version should allow for addition of RRAs with proper population of rows
> based on available data. This includes the current CDP for seamless
> updates!
>
> The code most definitly has bugs. It also likely contains
> implicit/hidden assumptions causing problems with row/RRA additions. (I
> did not in-depth test different CFs or the handling of NAN values - but
> I kindly ask you to check if this works.
>
> I have also added a tests directory containing some scripts to test the
> changes. Having said this: We should really try to collect tests and to
> maybe get a test suite to check RRD operations.
>
> Tobi: please consider to pull / merge the branch.

done ... wow ... you definitely were on a role there ...

re testing ... there is a VERY modest beginnning in

https://github.com/oetiker/rrdtool-1.x/blob/master/.travis.yml

you may want to add your new tests there too ...

the config file is for https://travis-ci.org/ (it hooks into
github)

cheer
tobi

> peter
>
> _______________________________________________
> rrd-developers mailing list
> rrd-developers at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902



More information about the rrd-developers mailing list