Statsd Sink

The Vector statsd sink streams metric events to StatsD metrics service.

Configuration

vector.toml
[sinks.my_sink_id]
type = "statsd" # required
inputs = ["my-source-or-transform-id"] # required
address = "127.0.0.1:8125" # optional, default
healthcheck = true # optional, default
namespace = "service" # required
  • stringcommonoptional

    address

    The UDP socket address to send stats to.

    • Default: "127.0.0.1:8125"
  • boolcommonoptional

    healthcheck

    Enables/disables the sink healthcheck upon start.

    • Default: true
    • View examples
  • stringcommonrequired

    namespace

    A prefix that will be added to all metric names.

    • No default
    • View examples

Examples

gorets:1|c
glork:320|ms
gaugor:333|g
uniques:765|s

How It Works

Environment Variables

Environment variables are supported through all of Vector's configuration. Simply add ${MY_ENV_VAR} in your Vector configuration file and the variable will be replaced before being evaluated.

You can learn more in the Environment Variables section.

Streaming

The statsd sink streams data on a real-time event-by-event basis. It does not batch data.