Statsd
Configuration Options
Required Options
address(required)
The address to connect to. The address must include a port.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["92.12.333.224:5000"] |
mode(required)
The type of socket to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["tcp","udp","unix"] |
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-*"] |
encoding(required)
Configures the encoding specific sink behavior.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
path(required)
The unix socket path. This should be the absolute path.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["/path/to/socket"] |
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 | ["statsd","socket"] |
Advanced Options
buffer(optional)
Configures the sink specific buffer behavior.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
healthcheck(optional)
Health check options for the sink.
Type | Syntax | Default | Example |
---|---|---|---|
hash | [] |
send_buffer_bytes(optional)
Configures the send buffer size using the SO_SNDBUF
option on the socket.
Type | Syntax | Default | Example |
---|---|---|---|
uint | [65536] |
keepalive(optional)
Configures the TCP keepalive behavior for the connection to the sink.
Type | Syntax | Default | Example |
---|---|---|---|
hash | [] |
tls(optional)
Configures the TLS options for incoming connections.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
default_namespace(optional)
Used as a namespace for metrics that don't have it. A namespace will be prefixed to a metric's name.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["service"] |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.
Health checks
Health checks ensure that the downstream service is accessible and ready to accept data. This check is performed upon sink initialization. If the health check fails an error will be logged and Vector will proceed to start.