Add Tags Transform

The Vector add_tags transform shapes metrics

Configuration

[transforms.my_transform_id]
# General
type = "add_tags" # required
inputs = ["my-source-or-transform-id"] # required
overwrite = true # optional, default
# Tags
tags.static_tag = "my value" # example
tags.env_tag = "${ENV_VAR}" # example
  • commonoptionalbool

    overwrite

    By default, fields will be overridden. Set this to false to avoid overwriting values.

    • Default: true
    • View examples
  • commonoptionaltable

    tags

    A table of key/value pairs representing the tags to be added to the metric.

Output

Telemetry

This component provides the following metrics that can be retrieved through the internal_metrics source. See the metrics section in the monitoring page for more info.

  • counter

    processed_events_total

    The total number of events processed by this component. This metric includes the following tags:

    • component_kind - The Vector component kind.

    • component_name - The Vector component ID.

    • component_type - The Vector component type.

    • file - The file that produced the error

    • instance - The Vector instance identified by host and port.

    • job - The name of the job producing Vector metrics.

  • counter

    processed_bytes_total

    The total number of bytes processed by the component. This metric includes the following tags:

    • component_kind - The Vector component kind.

    • component_name - The Vector component ID.

    • component_type - The Vector component type.

    • instance - The Vector instance identified by host and port.

    • job - The name of the job producing Vector metrics.

How It Works