1
0
Fork 0
telegraf/plugins/processors/template/sample.conf

12 lines
483 B
Text
Raw Normal View History

# Uses a Go template to create a new tag
[[processors.template]]
## Go template used to create the tag name of the output. In order to
## ease TOML escaping requirements, you should use single quotes around
## the template string.
tag = "topic"
## Go template used to create the tag value of the output. In order to
## ease TOML escaping requirements, you should use single quotes around
## the template string.
template = '{{ .Tag "hostname" }}.{{ .Tag "level" }}'