Difference between revisions of "Plugin:Aggregation"

From collectd Wiki
Jump to: navigation, search
(Document the naming schema.)
 
(5 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
   | Type=read / write
 
   | Type=read / write
 
   | Callbacks={{Callback|config}}, {{Callback|read}}, {{Callback|write}}
 
   | Callbacks={{Callback|config}}, {{Callback|read}}, {{Callback|write}}
   | Status={{in development}}
+
   | Status={{supported}}
 
   | FirstVersion={{Version|5.2}}
 
   | FirstVersion={{Version|5.2}}
 
   | Copyright=''2012'' [[User:Octo|Florian octo Forster]]
 
   | Copyright=''2012'' [[User:Octo|Florian octo Forster]]
 
   | License={{MIT License}}
 
   | License={{MIT License}}
   | Manpage={{Manpage|collectd.conf|5|plugin_aggregate}}
+
   | Manpage={{Manpage|collectd.conf|5|plugin_aggregation}}
 
}}
 
}}
  
The '''Aggregate plugin''' allows to aggregate multiple values into a single value using one or several consolidation functions, e.g. summation and average. This has a broad range of applications, e.g. calculating the average CPU utilization over all cores of each host or calculating the sum of the system load of all hosts.
+
The '''Aggregate plugin''' allows to aggregate multiple values into a single value using one or several consolidation functions, e.g. summation and average. This has a broad range of applications, e.g. calculating the average CPU utilization over all cores of each host. The full specification for the aggregation plugin can be found in the manpage for collect.conf(5): [https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_aggregation].
  
 
== Naming schema ==
 
== Naming schema ==
Line 21: Line 21:
 
* ''Type:'' The type cannot be left unspecified and is copied from the original value lists.
 
* ''Type:'' The type cannot be left unspecified and is copied from the original value lists.
 
* ''Type instance:'' The type instance is copied from the original value lists unless the ''TypeInstance'' option is left unspecified in which case it will be left empty.
 
* ''Type instance:'' The type instance is copied from the original value lists unless the ''TypeInstance'' option is left unspecified in which case it will be left empty.
 +
* ''GroupBy:'' The field to group by. It has the following options "Host", "Plugin", "PluginInstance", "TypeInstance". You can repeat this clause to include multiple fields.
  
 
== Synopsis ==
 
== Synopsis ==
Line 42: Line 43:
 
   </Aggregation>
 
   </Aggregation>
 
  </Plugin>
 
  </Plugin>
 +
 +
This registers a writer by the name
 +
aggregation
  
 
== Dependencies ==
 
== Dependencies ==
  
 
* ''None''
 
* ''None''
 +
 +
[[Category:Plugins]]
 +
{{DEFAULTSORT:Aggregation}}

Latest revision as of 01:31, 12 March 2020

Aggregate plugin
Type: read / write
Callbacks: config, read, write
Status: supported
First version: 5.2
Copyright: 2012 Florian octo Forster
License: MIT license
Manpage: collectd.conf(5)
List of Plugins

The Aggregate plugin allows to aggregate multiple values into a single value using one or several consolidation functions, e.g. summation and average. This has a broad range of applications, e.g. calculating the average CPU utilization over all cores of each host. The full specification for the aggregation plugin can be found in the manpage for collect.conf(5): [1].

Naming schema

New names are automatically generated for the aggregated values. They all have the plugin field set to aggregation. The exact naming follows these rules:

  • Host: The host is copied from the original value lists unless the Host option is left unspecified in which case it will be set to global.
  • Plugin: The plugin is set to aggregation.
  • Plugin instance: The plugin instance contains plugin and plugin instance of the original value list and the aggregation function used. The three parts are separated by dashes. If Plugin or PluginInstance (or both) is unspecified, that part will be omitted.
  • Type: The type cannot be left unspecified and is copied from the original value lists.
  • Type instance: The type instance is copied from the original value lists unless the TypeInstance option is left unspecified in which case it will be left empty.
  • GroupBy: The field to group by. It has the following options "Host", "Plugin", "PluginInstance", "TypeInstance". You can repeat this clause to include multiple fields.

Synopsis

→ See: Plugin:Aggregation/Config
<Plugin "aggregation">
  <Aggregation>
    Plugin "example"
    Type "gauge"
    
    GroupBy "Host"
    GroupBy "TypeInstance"
    
    CalculateNum false
    CalculateSum false
    CalculateAverage true
    CalculateMinimum false
    CalculateMaximum false
    CalculateStddev false
  </Aggregation>
</Plugin>

This registers a writer by the name

aggregation

Dependencies

  • None