X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=8cdf08bb3b6807229bb4a985a5b01f74771f8378;hb=7a36927e0c5411c701d9e1bfd3f02a9c2f254d0f;hp=7b74eee8301b958a3e43d6e3d052b4a779dc9589;hpb=e71b0716ca4c0a3df8ffae073d66535a7f61d70e;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 7b74eee8..8cdf08bb 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -4,29 +4,139 @@ 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