telegraf/plugins/aggregators/merge
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
..
README.md chore: Fix readme linter errors for processor, aggregator, and parser plugins (#10960) 2022-06-06 17:04:28 -06:00
merge.go docs: Remove warning not to remove go:embed (#11797) 2022-09-13 12:47:58 -05:00
merge_test.go feat: migrate aggregator plugins to new sample config format (#10912) 2022-04-06 14:40:17 -06:00
sample.conf chore(aggregators): migrate sample configs into separate files (#11130) 2022-05-18 11:29:55 -05:00

README.md

Merge Aggregator Plugin

Merge metrics together into a metric with multiple fields into the most memory and network transfer efficient form.

Use this plugin when fields are split over multiple metrics, with the same measurement, tag set and timestamp. By merging into a single metric they can be handled more efficiently by the output.

Configuration

# Merge metrics into multifield metrics by series key
[[aggregators.merge]]
  ## If true, the original metric will be dropped by the
  ## aggregator and will not get sent to the output plugins.
  drop_original = true

Example

- cpu,host=localhost usage_time=42 1567562620000000000
- cpu,host=localhost idle_time=42 1567562620000000000
+ cpu,host=localhost idle_time=42,usage_time=42 1567562620000000000