From 98229d2c767c2acb9850ac0468144b73c25c75d5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 23 Nov 2008 19:09:53 +0100 Subject: [PATCH] collectd.conf(5): Document the regex match and the set target. --- src/collectd.conf.pod | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) 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 -- 2.30.2