]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Adapt man pages to cover new "tune" capabilites and remove obsolete
authorPeter Stamfest <peter@stamfest.at>
Sun, 11 Jan 2015 19:25:26 +0000 (20:25 +0100)
committerPeter Stamfest <peter@stamfest.at>
Sun, 11 Jan 2015 19:25:26 +0000 (20:25 +0100)
"modify" man page.

doc/rrdcreate.pod
doc/rrdmodify.pod [deleted file]
doc/rrdtool.pod
doc/rrdtune.pod

index 6de2dc52acd9295996b51bca5b03689e09afb04c..b7b33ece9b162389aafdfc44f3b7c2bc50f4e1de 100644 (file)
@@ -743,6 +743,6 @@ divides each PDP of the AccumDuration by the corresponding PDP of
 TotalRequests and stores the average request duration. The remainder of the
 RPN expression handles the divide by zero case.
 
-=head1 AUTHOR
+=head1 AUTHORS
 
-Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>, Peter Stamfest E<lt>peter@stamfest.atE<gt>
diff --git a/doc/rrdmodify.pod b/doc/rrdmodify.pod
deleted file mode 100644 (file)
index 5e1efe8..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-=head1 NAME
-
-rrdmodify - Change the data source structure of an RRD
-
-=head1 SYNOPSIS
-
-B<rrdtool> {B<modify>} S<[-d <address> ]> S<[-s <newstep> ]>
-I<in-filename> I<out-filename> 
-S<[ B<DEL:>I<ds-name> | B<DS:>I<ds-spec> ... ]>
-
-=head1 DESCRIPTION
-
-The B<modify> function copies an RRD file I<in-filename> to
-I<out-filename>, possible removing or adding data sources and
-round-robin archives (RRAs) on the fly. When I<in-filename> and
-I<out-filename> denote the same file, this is (almost) identical to an
-in-place modification.
-
-=over 8
-
-=item S<-d <address> >
-
-If given, B<RRDTool> will try to connect to the caching daemon
-L<rrdcached> at I<address> to flush any data not yet written to the
-input RRD before reading it in. After writing the final file a FORGET
-command is sent to the daemon. This will make the daemon recognize the
-updated structure of the underlying RRD file.
-
-=item S<-s <newstep> >
-
-Changes the step size if the RRD to newstep. There are restrictions on
-the possible I<newstep> that can be given, namely: The current
-stepping of the I<in-filename> must be a multiple of the
-I<newstep>. This also means that currently the step size can only be
-reduced.
-
-When giving this option, modifications to RRAs will be done AFTER
-adapting the step size, so any RRA specifications referring to counts
-of PDPs will allready use the new stepping. 
-
-Note that changing the step size does NOT change the number of rows of
-any existing RRA by itself: Only the stepsize and assorted other meta
-values get changed (namely the PDP count of RRAs and possibly some CDP
-information).
-
-For a reduced step size to make sense in practice, it is usually a
-good idea to add one or more new RRAs with a step size of 1, because
-all existing RRAs will afterwards definitly have a pdp step count of
-larger than one, effectively hiding the step smaller size.
-
-=item I<in-filename>
-
-The name of the source B<RRD> file you want to copy/modify.
-
-=item I<out-filename>
-
-The name of the destination B<RRD> file. If it names the same file as
-I<in-filename>, the new RRD will effectively relace the old one.
-
-=item B<DEL:>I<ds-name>
-
-Every data source named with a DEL specification will be removed
-during the copy operation. The resulting RRD will miss both the
-definition and the data for that data source. Multiple DEL
-specifications are permitted.
-
-=item B<DS:>I<ds-spec>
-
-For every such data source definition (for the exact syntax see the
-create command), a new data source will be added to the output
-RRD. Multiple DS specifications are permitted.
-
-=item B<DELRRA:>I<index>
-
-Removes the RRA with index I<index>.
-
-=item B<RRA:>I<rra-spec>
-
-For every such archive definition (for the exact syntax see the
-create command), a new RRA will be added to the output
-RRD. Multiple RRA specifications are permitted.
-
-=item B<RRA#>I<index>:[+-=]<number>
-
-Adds/removes or sets the given number of rows for the RRA with index
-<index>.
-
-=item B<--daemon> I<address>
-
-If given, B<RRDTool> will try to connect to the caching daemon
-L<rrdcached> at I<address> and will fail if the connection cannot be
-established. If the connection is successfully established the data
-for the I<in-filename> will be flushed before performing the
-copy/modify operation. Afterwards the I<out-filename> will be
-forgotten by the cache daemon, so that the next access using the
-caching daemon will read the proper structure.
-
-For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
-
-=back
-
-=head1 ENVIRONMENT VARIABLES
-
-The following environment variables may be used to change the behavior of
-C<rrdtoolE<nbsp>update>:
-
-=over
-
-=item B<RRDCACHED_ADDRESS>
-
-If this environment variable is set it will have the same effect as specifying
-the C<--daemon> option on the command line. If both are present, the command
-line argument takes precedence.
-
-=back
-
-=head1 AUTHORS
-
-Tobias Oetiker <tobi@oetiker.ch>,
-Peter Stamfest <peter@stamfest.at>
-
index 4e336d643b0862275889b530e4598379167e11cd..46368fb77fe4558fada72955d4f8e06c5c66d121 100644 (file)
@@ -80,11 +80,7 @@ uses fetch to retrieve its data from an RRD. Check L<rrdfetch>.
 
 =item B<tune>
 
-Alter setup of an RRD. Check L<rrdtune>.
-
-=item B<modify>
-
-Alter structure of an RRD. Check L<rrdmodify>.
+Alter setup and structure of an RRD. Check L<rrdtune>.
 
 =item B<first>
 
index 859c14345f407d7c77f6813fc9dd8de8b7071074..71d70469da3dec406ed6e183ef72b97212dfae3c 100644 (file)
@@ -21,6 +21,12 @@ S<[B<--gamma-deviation> I<adaption-parameter>]>
 S<[B<--smoothing-window> I<fraction-of-season>]>
 S<[B<--smoothing-window-deviation> I<fraction-of-season>]>
 S<[B<--aberrant-reset> I<ds-name>]>
+S<[B<--daemon>|B<-D> I<address>]>
+S<[B<DEL:>I<ds-name>]>
+S<[B<DS:>I<ds-spec>]>
+S<[B<DELRRA:>I<index>]>
+S<[B<RRA:>I<rra-spec>]>
+S<[B<RRA#>I<index>:[+-=]<number>]>
 
 =head1 DESCRIPTION
 
@@ -38,6 +44,15 @@ the data source header in the B<RRD>.
 A second application of the B<tune> function is to set or alter parameters
 used by the specialized function B<RRAs> for aberrant behavior detection.
 
+Still another application is to add or remove data sources (DS) or 
+add / remove or alter some aspects of round-robin archives (RRA). These operations 
+are not really done in-place, but rather generate a new RRD file internally and 
+move it over the original file. Data is kept intact during theses operations.
+For even more in-depth modifications you may review the 
+S<B<--source>> and S<B<--template>> options of the B<create> function which  
+allow you to combine multiple RRD files into a new one and which is even more clever 
+in what data it is able to keep or "regenerate".
+
 =over 8
 
 =item I<filename>
@@ -157,6 +172,58 @@ data source.
 Use of this tuning option is advised when the behavior of the data source
 time series changes in a drastic and permanent manner.
 
+=item B<--daemon>|B<-D> I<address>
+
+B<NOTE>: Because the B<-d> (small letter 'd') option was already taken, this 
+function (unlike most other) uses the capital letter 'D' for the one-letter 
+option to name the cache daemon.
+
+If given, B<RRDTool> will try to connect to the caching daemon
+L<rrdcached> at I<address> and will fail if the connection cannot be
+established. If the connection is successfully established the data
+for the I<filename> will be flushed before performing the
+copy/modify operation. Afterwards the I<filename> will be
+forgotten by the cache daemon, so that the next access using the
+caching daemon will read the proper structure.
+
+This sequence of operations is designed to achieve a consistent overall 
+result with respect to
+RRD internal file consistency when using one of the B<DS> or B<RRA> changing 
+operations (that is: the resulting file should always be a valid RRD file,
+regardless of concurrent updates through the caching daemon).
+Regarding data consistency such guarantees are not made: Without external 
+synchronisation concurrent updates may be lost.
+
+For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
+
+=item B<DEL:>I<ds-name>
+
+Every data source named with a DEL specification will be removed.
+The resulting RRD will miss both the definition and the data for that 
+data source. Multiple DEL specifications are permitted.
+
+=item B<DS:>I<ds-spec>
+
+For every such data source definition (for the exact syntax see the
+B<create> command), a new data source will be added to the RRD. Multiple DS 
+specifications are permitted.
+
+=item B<DELRRA:>I<index>
+
+Removes the RRA with index I<index>. The index is zero-based, 
+that is the very first RRA has index 0.
+
+=item B<RRA:>I<rra-spec>
+
+For every such archive definition (for the exact syntax see the
+B<create> command), a new RRA will be added to the output
+RRD. Multiple RRA specifications are permitted.
+
+=item B<RRA#>I<index>:[+-=]<number>
+
+Adds/removes or sets the given number of rows for the RRA with index
+<index>. The index is zero-based, that is the very first RRA has index 0.
+
 =back
 
 =head1 EXAMPLE 1
@@ -177,7 +244,15 @@ window-length is 9 and the default failure-threshold is 7. This
 command now defines a failure as 3 or more violations in a temporal
 window of 5 time points.
 
-=head1 AUTHOR
+=head1 EXAMPLE 3
+
+C<rrdtool tune some.rrd DEL:a RRA#0:+10>
+
+Delete the data source named B<a> and extend the very first archive by 10 rows.
+This will in fact replace the input RRD with a new RRD keeping all existing data.
+For most practical use cases this is identical to a real in-place modification.
+
+=head1 AUTHORS
 
-Tobias Oetiker <tobi@oetiker.ch>
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>, Peter Stamfest E<lt>peter@stamfest.atE<gt>