X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=9707fa30f1106b9ce63c841f54e3aa5daf83f79a;hb=8ea1756522f94af8e0bb7d06c800d94874f13549;hp=7b74eee8301b958a3e43d6e3d052b4a779dc9589;hpb=94e79298d3f139ba10d9bc7a6909de4cc9afef06;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 7b74eee8..9707fa30 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -4,29 +4,119 @@ collectd-perl - Documentation of collectd's C =head1 SYNOPSIS - # See collectd.conf(5) LoadPlugin perl # ... IncludeDir "/path/to/perl/plugins" BaseName "Collectd::Plugin" + EnableDebugger "" LoadPlugin "FooBar" =head1 DESCRIPTION -The C includes a Perl-interpreter in collectd and provides -Perl-equivalents of the plugin-functions. This makes it possible to write -plugins for collectd in Perl. This is a lot more performant than executing a +The C embeds a Perl-interpreter into collectd and provides an +interface to collectd's plugin system. This makes it possible to write plugins +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. Please note that this is still considered to be experimental and subject to change between minor releases. +=head1 CONFIGURATION + +=over 4 + +=item B I + +Loads the Perl plugin I. This does basically the same as B would +do in a Perl program. As a side effect, the first occurrence of this option +causes the Perl-interpreter to be initialized. + +=item B I + +Prepends IB<::> to all plugin names loaded after this option. This is +provided for convenience to keep plugin names short. + +=item B I[=I