Statsd Source
The Vector statsd source ingests data through the StatsD UDP protocol and outputs metric events.
Configuration
[sources.my_source_id]type = "statsd" # example, must be: "statsd"address = "127.0.0.1:8126" # example
Options
address
UDP socket address to bind to.
Output
The statsd source ingests data through the StatsD UDP protocol and outputs metric events.
For example:
- Counter
- Gauge
- Set
- Timer/Histogram
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.
Timestamp
StatsD protocol does not provide support for sending metric timestamps. You'll
notice that each parsed metric is assigned a null timestamp, which is a
special value which means "a real time metric" (not historical one). Normally such
null timestamps will be substituted by current time by downstream sinks or
3rd party services during sending/ingestion. See the metric
data model page for more info.