telegraf/plugins/aggregators/merge
David Bennett 842a788022
Remove error return type from metric.New method (#9116)
* Remove error return type from metric.New method.

* Formatting changes for linter + gofmt

* Additional linter fixes.

* More linter fixes.

* Linter fix.

* address comments
2021-04-13 14:40:03 -04:00
..
README.md Fix indention in merge sample config 2020-01-08 10:48:06 -08:00
merge.go Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984) 2021-03-22 12:21:36 -05:00
merge_test.go Remove error return type from metric.New method (#9116) 2021-04-13 14:40:03 -04:00

README.md

Merge Aggregator

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

[[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