Difference between revisions of "Plugin:Lua"
From collectd Wiki
(Add plugin page for Lua) |
m |
||
Line 29: | Line 29: | ||
== History == | == History == | ||
− | * {{5.6}}: The plugin was added to allow writing plugins using the Lua programming language. | + | * {{Version|5.6}}: The plugin was added to allow writing plugins using the Lua programming language. |
− | * {{5.9}}: A memory leak was fixed. | + | * {{Version|5.9}}: A memory leak was fixed. |
== See also == | == See also == |
Latest revision as of 18:41, 26 March 2020
Lua plugin | |
---|---|
Type: | binding |
Callbacks: | config, read, write, shutdown |
Status: | supported |
First version: | 5.6 |
Copyright: | 2010 Julien Ammous 2010 Florian Forster 2016 Ruben Kerkhof |
License: | MIT license |
Manpage: | collectd-lua(5) |
List of Plugins |
The Lua plugin implements a Lua interpreter into collectd. This makes it possible to write plugins in Lua which are executed by collectd without the need to start a heavy interpreter every interval. See collectd-lua(5) for details.
This plugin is a generic plugin, i.e. it cannot work without configuration, because there is no reasonable default behavior. Please read the Plugin lua section of the collectd.conf(5) manual page for an in-depth description of the plugin's configuration.
Contents
Synopsis
LoadPlugin lua # ... <Plugin lua> BasePath "/path/to/your/lua/scripts" Script "script1.lua" Script "script2.lua" </Plugin>
Dependencies
Caveats
History
- 5.6: The plugin was added to allow writing plugins using the Lua programming language.
- 5.9: A memory leak was fixed.