X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=d4137bb751cc9259a3af4e07d0a69eb384dedf53;hb=b61a03b05c1f4040a6599334b65141aa3bd134f5;hp=d5401dd4c7aac55bf1f08d8c5cf5ecbd0c9ff733;hpb=a24bf968e72f9a103a354dcc833619a40849cfcd;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index d5401dd4..d4137bb7 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -1,12 +1,12 @@ +=encoding UTF-8 + =head1 NAME collectd-perl - Documentation of collectd's C =head1 SYNOPSIS - - Globals true - + LoadPlugin perl # ... IncludeDir "/path/to/perl/plugins" @@ -27,12 +27,6 @@ for collectd in Perl. This is a lot more efficient than executing a Perl-script every time you want to read a value with the C (see L) and provides a lot more functionality, too. -When loading the C, the B option should be enabled. -Else, the perl plugin will fail to load any Perl modules implemented in C, -which includes, amongst many others, the B module used by the plugin -itself. See the documentation of the B option in L -for details. - =head1 CONFIGURATION =over 4 @@ -208,7 +202,7 @@ layout looks like this: { values => [123, 0.5], time => time (), - interval => $interval_g, + interval => plugin_get_interval (), host => $hostname_g, plugin => 'myplugin', type => 'myplugin', @@ -415,6 +409,13 @@ The message is passed to all log-callbacks that are registered with collectd. Wrappers around B, using B, B, B, B and B respectively as I. +=item B () + +Returns the interval of the current plugin as a floating point number in +seconds. This value depends on the interval configured within the +C block or the global interval (see L for +details). + =back The following function provides the filter chain C-interface to Perl-modules. @@ -494,6 +495,11 @@ B configuration options (see L for details). This variable keeps the interval in seconds in which the read functions are queried (see the B configuration option). +B This variable should no longer be used in favor of +C (see above). This function takes any plugin-specific +interval settings into account (see the C option of C in +L for details). + =back Any changes to these variables will be globally visible in collectd.