Skip to content
Florian Forster edited this page Nov 26, 2023 · 1 revision
Name: Scale target
Type: target
Status: supported
FirstVersion: 4.9
Copyright: 2008–2009 Florian octo Forster
License: GPLv2
Manpage: collectd.conf(5)
See also: List of Targets

The Scale target can be used to modify the values being handled by collectd. Currently you can multiply the values by a constant (hence the name “scale”) and add an offset. This works not only for GAUGE but for all data-source types.

For the COUNTER, DERIVE, and ABSOLUTE data source types, all of which are integers, the target tracks the rounding error. This way the introduced error is minimized which allows to scale slow changing counters down and to multiply by arbitrary doubles.

Synopsis

 <Target "scale">
   Factor 3.14159265358979323846
   #Offset 42
 </Target>

Dependencies

  • none
Clone this wiki locally