summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5552d34)
raw | patch | inline | side by side (parent: 5552d34)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 16 Aug 2005 05:30:29 +0000 (05:30 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 16 Aug 2005 05:30:29 +0000 (05:30 +0000) |
program/doc/rrdgraph_data.pod | patch | blob | history | |
program/doc/rrdgraph_examples.pod | patch | blob | history | |
program/doc/rrdgraph_rpn.pod | patch | blob | history |
index c3891d467bbbb240be5f2a5bb03363e99ea980b6..04d976174b4a679cf0eac31a2589d99f6d3e3e6e 100644 (file)
Example: C<VDEF:avg=mydata,AVERAGE>
+Note that currently only agregation functions work in VDEF rpn expressions.
+Patches to change this are welcome.
+
=head1 CDEF
B<CDEF>:I<vname>=I<RPN expression>
index f09ce847fe9a055fc872a48f2b1cc10faf4a9341..9f0233be86bc77312726aa70da4705949a0db4e2 100644 (file)
DEF:ds0=/home/rrdtool/data/router1.rrd:ds0:AVERAGE
DEF:ds1=/home/rrdtool/data/router1.rrd:ds1:AVERAGE
- VDEF:ds0max=ds0,MAXIMUM,8,*
- VDEF:ds0avg=ds0,AVERAGE,8,*
- VDEF:ds0min=ds0,MINIMUM,8,*
- VDEF:ds0pct=95,ds0,PERCENTILE,8,*
- VDEF:ds1max=ds1,MAXIMUM,8,*
- VDEF:ds1avg=ds1,AVERAGE,8,*
- VDEF:ds1min=ds1,MINIMUM,8,*
- VDEF:ds1pct=95,ds1,PERCENTILE,8,*
+ VDEF:ds0max=ds0,MAXIMUM
+ VDEF:ds0avg=ds0,AVERAGE
+ VDEF:ds0min=ds0,MINIMUM
+ VDEF:ds0pct=ds0,95,PERCENT
+ VDEF:ds1max=ds1,MAXIMUM
+ VDEF:ds1avg=ds1,AVERAGE
+ VDEF:ds1min=ds1,MINIMUM
+ VDEF:ds1pct=ds1,95,PERCENT
Note: consolidation occurs here.
index 1aaef65302d556e087acf66b36bf1e40adb6f726..dfc9a0bda903e77d6538fa7cffe38eb079a4376e 100644 (file)
implicitly, so whenever you specify a number or a variable, it gets
pushed onto the stack automatically.
-At the end of the calculation there should be one and only one
-value left on the stack. This is the outcome of the function and
-this is what is put into the I<vname>. For B<CDEF> instructions,
-the stack is processed for each data point on the graph. B<VDEF>
-instructions work on an entire data set in one run.
+At the end of the calculation there should be one and only one value left on
+the stack. This is the outcome of the function and this is what is put into
+the I<vname>. For B<CDEF> instructions, the stack is processed for each
+data point on the graph. B<VDEF> instructions work on an entire data set in
+one run. Note, that currently B<VDEF> instructions only support a limited
+list of functions.
Example: C<VDEF:maximum=mydata,MAXIMUM>
you to make calculations based on the position of the value within
the data set. This function cannot be used in B<VDEF> instructions.
-Z<>
-
=item Time
Time inside RRDtool is measured in seconds since the epoch. The
=head1 VARIABLES
-These operators work only on B<VDEF> statements.
+These operators work only on B<VDEF> statements. Note that currently ONLY these work for B<VDEF>.
=over 4