X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=c5d7400a8e0c0af50c13e204d397998b16b96bb2;hb=33e60ef35f745c56b1a5936272b1dd8b0cf63d12;hp=1c8b7a4f2153183c716f83accd0dc02e7389abbd;hpb=16202999622d778521903ca2feef7d55c5b1b5b3;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 1c8b7a4f..c5d7400a 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -109,7 +109,7 @@ interval, that setting will take precedence. =back -=item B I +=item B I [I] If I points to a file, includes that file. If I points to a directory, recursively includes all files within that directory and its @@ -119,6 +119,15 @@ use statements like the following: Include "/etc/collectd.d/*.conf" +If the C function is available on your system, a shell-like wildcard +I may be specified to filter which files to include. This may be used +in combination with recursively including a directory to easily be able to +arbitrarily mix configuration files and other documents (e.g. README files). +The following statement is similar to the example above but includes all files +matching C<*.conf> in any subdirectory of C: + + Include "/etc/collectd.d" "*.conf" + If more than one files are included by a single B option, the files will be included in lexicographical order (as defined by the C function). Thus, you can e.Eg. use numbered prefixes to specify the @@ -308,6 +317,61 @@ extended regular expressions as described in L. Example usage: Group valued by the specified field. The B option may be repeated to group by multiple fields. +=item B I + +=item B I + +=item B I + +=item B I + +Sets the appropriate part of the identifier to the provided string. + +The I should include the placeholder C<%{aggregation}> which +will be replaced with the aggregation function, e.g. "average". Not including +the placeholder will result in duplication warnings and/or messed up values if +more than one aggregation function are enabled. + +The following example calculates the average usage of all "even" CPUs: + + + + Plugin "cpu" + PluginInstance "/[0,2,4,6,8]$/" + Type "cpu" + + SetPlugin "cpu" + SetPluginInstance "even-%{aggregation}" + + GroupBy "Host" + GroupBy "TypeInstance" + + CalculateAverage true + + + +This will create the files: + +=over 4 + +=item + +foo.example.com/cpu-even-average/cpu-idle + +=item + +foo.example.com/cpu-even-average/cpu-system + +=item + +foo.example.com/cpu-even-average/cpu-user + +=item + +... + +=back + =item B B|B =item B B|B @@ -438,7 +502,7 @@ mode will be used, i.e. delivery is guaranteed. If set to B (the default), the I delivery mode will be used, i.e. messages may be lost due to high load, overflowing queues or similar issues. -=item B B|B (Publish only) +=item B B|B|B (Publish only) Selects the format in which messages are sent to the broker. If set to B (the default), values are sent as C commands which are @@ -577,6 +641,12 @@ B can handle it. TCP-Port to connect to. Defaults to B<3551>. +=item B B + +If set to B, the time reported in the C metric will be +converted to seconds. This is the recommended setting. If set to B, the +default for backwards compatibility, the time will be reported in minutes. + =back =head2 Plugin C