telegraf/plugins/processors/rename
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776)
2022-09-08 12:49:36 -06:00
..
README.md chore: Embed sample configurations into README for processors (#11189) 2022-05-25 08:59:41 -06:00
rename.go chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
rename_test.go fix: Linter fixes for plugins/processors/[a-z]* (#10161) 2021-11-24 12:38:08 -07:00
sample.conf chore(processors): migrate sample configs into separate files (#11125) 2022-05-18 11:29:43 -05:00

README.md

Rename Processor Plugin

The rename processor renames measurements, fields, and tags.

Configuration

# Rename measurements, tags, and fields that pass through this filter.
[[processors.rename]]
  ## Specify one sub-table per rename operation.
  [[processors.rename.replace]]
    measurement = "network_interface_throughput"
    dest = "throughput"

  [[processors.rename.replace]]
    tag = "hostname"
    dest = "host"

  [[processors.rename.replace]]
    field = "lower"
    dest = "min"

  [[processors.rename.replace]]
    field = "upper"
    dest = "max"

Tags

No tags are applied by this processor, though it can alter them by renaming.

Example

- network_interface_throughput,hostname=backend.example.com lower=10i,upper=1000i,mean=500i 1502489900000000000
+ throughput,host=backend.example.com min=10i,max=1000i,mean=500i 1502489900000000000