Add Tags
CAUTION
This transform has been deprecated in favor of the remap
transform, which enables you to use Vector Remap Language (VRL for short) to
create transform logic of any degree of complexity. The examples below show how you can use VRL to
replace this transform's functionality.
#".tag = "value""#
Configuration Options
Required Options
inputs(required)
A list of upstream source or transform
IDs. Wildcards (*
) are supported.
See configuration for more info.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["my-source-or-transform-id","prefix-*"] |
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["add_tags"] |
Advanced Options
overwrite(optional)
By default, fields will be overridden. Set this to false
to avoid overwriting values.
Type | Syntax | Default | Example |
---|---|---|---|
bool |
tags(optional)
A table of key/value pairs representing the tags to be added to the metric.
Type | Syntax | Default | Example |
---|---|---|---|
hash | [{"static_tag":"my value","env_tag":"${ENV_VAR}"}] |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.