telegraf/plugins/processors/dedup
Sven Rebhan 35fe105bb4
fix(agent): Restore setup order of stateful plugins to Init() then SetState() (#16123)
2024-11-13 01:21:49 -06:00
..
README.md feat(processors.dedup): Add state persistence between runs (#14065) 2023-10-12 15:07:13 -06:00
dedup.go chore(linters): Enable `import-alias-naming` and `redundant-import-alias` rules for revive (#15836) 2024-10-01 13:49:53 -05:00
dedup_test.go fix(agent): Restore setup order of stateful plugins to Init() then SetState() (#16123) 2024-11-13 01:21:49 -06:00
sample.conf chore(processors): migrate sample configs into separate files (#11125) 2022-05-18 11:29:43 -05:00

README.md

Dedup Processor Plugin

Filter metrics whose field values are exact repetitions of the previous values. This plugin will store its state between runs if the statefile option in the agent config section is set.

Global configuration options

In addition to the plugin-specific configuration settings, plugins support additional global and plugin configuration settings. These settings are used to modify metrics, tags, and field or create aliases and configure ordering, etc. See the CONFIGURATION.md for more details.

Configuration

# Filter metrics with repeating field values
[[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