dedup

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 4 Imported by: 0

README

Dedup Processor Plugin

Filter metrics whose field values are exact repetitions of the previous values.

Configuration
[[processors.dedup]]
  ## Maximum time to suppress output
  dedup_interval = "600s"
Example
- cpu,cpu=cpu0 time_idle=42i,time_guest=1i
- cpu,cpu=cpu0 time_idle=42i,time_guest=2i
- cpu,cpu=cpu0 time_idle=42i,time_guest=2i
- cpu,cpu=cpu0 time_idle=44i,time_guest=2i
- cpu,cpu=cpu0 time_idle=44i,time_guest=2i
+ cpu,cpu=cpu0 time_idle=42i,time_guest=1i
+ cpu,cpu=cpu0 time_idle=42i,time_guest=2i
+ cpu,cpu=cpu0 time_idle=44i,time_guest=2i

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dedup

type Dedup struct {
	DedupInterval internal.Duration `toml:"dedup_interval"`
	FlushTime     time.Time
	Cache         map[uint64]cua.Metric
}

func (*Dedup) Apply

func (d *Dedup) Apply(metrics ...cua.Metric) []cua.Metric

main processing method

func (*Dedup) Description

func (d *Dedup) Description() string

func (*Dedup) SampleConfig

func (d *Dedup) SampleConfig() string

Jump to

Keyboard shortcuts

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