From: Florian Forster Date: Sun, 23 Nov 2008 18:09:53 +0000 (+0100) Subject: collectd.conf(5): Document the regex match and the set target. X-Git-Tag: collectd-4.6.0~143 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=98229d2c767c2acb9850ac0468144b73c25c75d5;p=collectd.git collectd.conf(5): Document the regex match and the set target. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index a1287c8b..a1846003 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -2696,6 +2696,78 @@ suggest to add the above snippet as default target to your main chain. TODO: Notifications will be implemented using chains, too. Describe that here! +=head2 Available matches + +=over 4 + +=item B + +Matches a value using regular expressions. + +Available options: + +=over 4 + +=item B I + +=item B I + +=item B I + +=item B I + +=item B I + +Match values where the given regular expressions match the various fields of +the identifier of a value. If multiple regular expressions are given, B +regexen must match for a value to match. + +=back + +Example: + + + Host "customer[0-9]+" + Plugin "^foobar$" + + +=back + +=head2 Available targets + +=over 4 + +=item B + +Sets part of the identifier of a value to a given string. + +Available options: + +=over 4 + +=item B I + +=item B I + +=item B I + +=item B I + +Set the appropriate field to the given string. The strings for plugin instance +and type instance may be empty, the strings for host and plugin may not be +empty. It's currently not possible to set the type of a value this way. + +=back + +Example: + + + PluginInstance "coretemp" + TypeInstance "core3" + + +=back + =head2 Examples Ignore all values, where the hostname does not contain a dot, i.Ee. can't