]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Add some documentation for the DCOUNTER and DDERIVE.
authorMaksym Sobolyev <sobomax@sippysoft.com>
Mon, 27 Oct 2014 17:43:21 +0000 (10:43 -0700)
committerMaksym Sobolyev <sobomax@sippysoft.com>
Mon, 27 Oct 2014 17:43:21 +0000 (10:43 -0700)
doc/rrdcreate.pod
doc/rrdupdate.pod

index eaf6653ae99e190938201862a2cf93a66ace46d8..6de2dc52acd9295996b51bca5b03689e09afb04c 100644 (file)
@@ -131,9 +131,9 @@ the characters [a-zA-Z0-9_].
 
 I<DST> defines the Data Source Type. The remaining arguments of a
 data source entry depend on the data source type. For GAUGE, COUNTER,
-DERIVE, and ABSOLUTE the format for a data source entry is:
+DERIVE, DCOUNTER, DDERIVE and ABSOLUTE the format for a data source entry is:
 
-B<DS:>I<ds-name>B<:>{I<GAUGE | COUNTER | DERIVE | ABSOLUTE>}B<:>I<heartbeat>B<:>I<min>B<:>I<max>
+B<DS:>I<ds-name>B<:>{I<GAUGE | COUNTER | DERIVE | DCOUNTER | DDERIVE | ABSOLUTE>}B<:>I<heartbeat>B<:>I<min>B<:>I<max>
 
 For COMPUTE data sources, the format is:
 
@@ -160,6 +160,19 @@ rate. When the counter overflows, RRDtool checks if the overflow
 happened at the 32bit or 64bit border and acts accordingly by adding
 an appropriate value to the result.
 
+=item B<DCOUNTER>
+
+the same as B<COUNTER>, but for quantities expressed as double-precision
+floating point number.  Could be used to track quantities that increment
+by non-integer numbers, i.e. number of seconds that some routine has taken
+to run, total weight processed by some technology equipment etc.  The
+only substantial difference is that B<DCOUNTER> can either be upward counting
+or downward counting, but not both at the same time.  The current direction
+is detected automatically on the second non-undefined counter update and
+any further change in the direction is considered a reset.  The new direction is
+determined and locked in by the second update after reset and its difference
+to the value at reset.
+
 =item B<DERIVE>
 
 will store the derivative of the line going from the last to the
@@ -169,6 +182,11 @@ room. Internally, derive works exactly like COUNTER but without
 overflow checks. So if your counter does not reset at 32 or 64 bit you
 might want to use DERIVE and combine it with a MIN value of 0.
 
+=item B<DDERIVE>
+
+the same as B<DERIVE>, but for quantities expressed as double-precision
+floating point number.
+
 B<NOTE on COUNTER vs DERIVE>
 
 by Don Baarda E<lt>don.baarda@baesystems.comE<gt>
@@ -625,8 +643,8 @@ precision should be acceptable.
 
 =item It's always a Rate
 
-RRDtool stores rates in amount/second for COUNTER, DERIVE and ABSOLUTE
-data.  When you plot the data, you will get on the y axis
+RRDtool stores rates in amount/second for COUNTER, DERIVE, DCOUNTER,
+DDERIVE and ABSOLUTE data.  When you plot the data, you will get on the y axis
 amount/second which you might be tempted to convert to an absolute
 amount by multiplying by the delta-time between the points. RRDtool
 plots continuous data, and as such is not appropriate for plotting
index 46eb80a786d14f74354b5b3e58c502c961e522c6..58b8cae2ccdcda0e27be294fa85695c776e92905 100644 (file)
@@ -91,8 +91,8 @@ time. An AT_STYLE TIME SPECIFICATION (see the I<rrdfetch>
 documentation) may also be used by delimiting the end of the time
 specification with the '@' character instead of a ':'. Getting the
 timing right to the second is especially important when you are
-working with data-sources of type B<COUNTER>, B<DERIVE> or
-B<ABSOLUTE>.
+working with data-sources of type B<COUNTER>, B<DERIVE>, B<DCOUNTER>,
+B<DDERIVE> or B<ABSOLUTE>.
 
 When using negative time values, options and data have to be separated
 by two dashes (B<-->), else the time value would be parsed as an option.