9595* [ ` collectd::plugin::swap ` ] ( #collectd--plugin--swap ) : https://collectd.org/wiki/index.php/Plugin:Swap
9696* [ ` collectd::plugin::sysevent ` ] ( #collectd--plugin--sysevent ) : == Class: collectd::plugin::sysevent Class to manage sysevent plugin for collectd Documentation: https://collectd.org/documentation/manpa
9797* [ ` collectd::plugin::syslog ` ] ( #collectd--plugin--syslog ) : https://collectd.org/wiki/index.php/Plugin:SysLog
98- * [ ` collectd::plugin::table ` ] ( #collectd--plugin--table ) : https://collectd.org/wiki/index.php/Chains
98+ * [ ` collectd::plugin::table ` ] ( #collectd--plugin--table ) : Load and configure the table plugin
9999* [ ` collectd::plugin::tail ` ] ( #collectd--plugin--tail ) : Tail plugin https://collectd.org/wiki/index.php/Plugin:Tail
100100* [ ` collectd::plugin::tail_csv ` ] ( #collectd--plugin--tail_csv ) : https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_tail_csv
101101* [ ` collectd::plugin::target_v5upgrade ` ] ( #collectd--plugin--target_v5upgrade ) : https://collectd.org/wiki/index.php/Target:v5_upgrade
164164* [ ` collectd::plugin::python::module ` ] ( #collectd--plugin--python--module ) : Single module definition
165165* [ ` collectd::plugin::snmp::data ` ] ( #collectd--plugin--snmp--data ) : https://collectd.org/wiki/index.php/Plugin:SNMP
166166* [ ` collectd::plugin::snmp::host ` ] ( #collectd--plugin--snmp--host ) : https://collectd.org/wiki/index.php/Plugin:SNMP
167+ * [ ` collectd::plugin::table::table ` ] ( #collectd--plugin--table--table ) : table definition for table plugin
167168* [ ` collectd::plugin::tail::file ` ] ( #collectd--plugin--tail--file )
168169* [ ` collectd::plugin::write_graphite::carbon ` ] ( #collectd--plugin--write_graphite--carbon ) : a single graphite backend
169170* [ ` collectd::type ` ] ( #collectd--type )
@@ -6179,7 +6180,32 @@ Default value: `undef`
61796180
61806181### <a name =" collectd--plugin--table " ></a >` collectd::plugin::table `
61816182
6182- https://collectd.org/wiki/index.php/Chains
6183+ Load and configure the table plugin
6184+
6185+ * ** See also**
6186+ * https://collectd.org/wiki/index.php/Plugin:Table
6187+
6188+ #### Examples
6189+
6190+ ##### Parse ` /proc/pressure/cpu `
6191+
6192+ ``` puppet
6193+ class {'collectd::plugin::table':
6194+ tables => {
6195+ '/proc/pressure/cpu' => {
6196+ 'plugin' => 'psi',
6197+ 'instance => 'cpu',
6198+ 'seperator' => ' =',
6199+ 'results' => [{
6200+ 'type' => 'gauge',
6201+ 'instance_from' => [0],
6202+ 'instance_prefix' => 'arg10',
6203+ 'values_from' => [2],
6204+ }],
6205+ }
6206+ }
6207+ }
6208+ ```
61836209
61846210#### Parameters
61856211
@@ -6191,23 +6217,25 @@ The following parameters are available in the `collectd::plugin::table` class:
61916217
61926218##### <a name =" -collectd--plugin--table--tables " ></a >` tables `
61936219
6194- Data type: ` Hash[String, Collectd::Table::Table, 1] `
6220+ Data type: ` Optional[ Hash[String, Collectd::Table::Table, 1] ]`
61956221
6222+ ` <Table> ` blocks for table plugin
61966223
6224+ Default value: ` undef `
61976225
61986226##### <a name =" -collectd--plugin--table--ensure " ></a >` ensure `
61996227
62006228Data type: ` Enum['present', 'absent'] `
62016229
6202-
6230+ Should the plugin be configured
62036231
62046232Default value: ` 'present' `
62056233
62066234##### <a name =" -collectd--plugin--table--order " ></a >` order `
62076235
62086236Data type: ` Integer `
62096237
6210-
6238+ Prefix of file in collectd config directory
62116239
62126240Default value: ` 10 `
62136241
@@ -9736,6 +9764,68 @@ Data type: `Optional[String[1]]`
97369764
97379765Default value: ` undef `
97389766
9767+ ### <a name =" collectd--plugin--table--table " ></a >` collectd::plugin::table::table `
9768+
9769+ table definition for table plugin
9770+
9771+ #### Examples
9772+
9773+ ##### Parse the /proc/uptime file
9774+
9775+ ``` puppet
9776+ collectd::plugin::table::table{'/proc/uptime':
9777+ table => {
9778+ 'plugin' => 'uptime',
9779+ 'instance' => 'first',
9780+ 'separator' => ' ',
9781+ 'results' => [{
9782+ 'type' => 'gauge',
9783+ 'values_from' => [0],
9784+ }],
9785+ }
9786+ }
9787+ ```
9788+
9789+ #### Parameters
9790+
9791+ The following parameters are available in the ` collectd::plugin::table::table ` defined type:
9792+
9793+ * [ ` $tablename ` ] ( #-collectd--plugin--table--table---tablename )
9794+ * [ ` $table ` ] ( #-collectd--plugin--table--table---table )
9795+ * [ ` ensure ` ] ( #-collectd--plugin--table--table--ensure )
9796+ * [ ` tablename ` ] ( #-collectd--plugin--table--table--tablename )
9797+ * [ ` table ` ] ( #-collectd--plugin--table--table--table )
9798+
9799+ ##### <a name =" -collectd--plugin--table--table---tablename " ></a >` $tablename `
9800+
9801+ Name of table typically a filename
9802+
9803+ ##### <a name =" -collectd--plugin--table--table---table " ></a >` $table `
9804+
9805+ Table definition
9806+
9807+ ##### <a name =" -collectd--plugin--table--table--ensure " ></a >` ensure `
9808+
9809+ Data type: ` Enum['present', 'absent'] `
9810+
9811+
9812+
9813+ Default value: ` 'present' `
9814+
9815+ ##### <a name =" -collectd--plugin--table--table--tablename " ></a >` tablename `
9816+
9817+ Data type: ` Stdlib::Unixpath `
9818+
9819+
9820+
9821+ Default value: ` $name `
9822+
9823+ ##### <a name =" -collectd--plugin--table--table--table " ></a >` table `
9824+
9825+ Data type: ` Collectd::Table::Table `
9826+
9827+
9828+
97399829### <a name =" collectd--plugin--tail--file " ></a >` collectd::plugin::tail::file `
97409830
97419831The collectd::plugin::tail::file class.
0 commit comments