seriesgrouper

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 4 Imported by: 1

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Merge

type Merge struct {
	// contains filtered or unexported fields
}

func (*Merge) Add

func (a *Merge) Add(m telegraf.Metric)

func (*Merge) Description

func (a *Merge) Description() string

func (*Merge) Init

func (a *Merge) Init() error

func (*Merge) Push

func (a *Merge) Push(acc telegraf.Accumulator)

func (*Merge) Reset

func (a *Merge) Reset()

func (*Merge) SampleConfig

func (a *Merge) SampleConfig() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL