StatsD Input
Listens for StatsD metrics over UDP and converts them to JSON.
How it works
- Binds a UDP socket on the configured address.
- Parses incoming StatsD line protocol (
metric:value|type|@rate|#tags). - Each metric is converted to a JSON object with
name,value,type,sample_rate, andtagsfields. - Namespace convention:
statsd.
Configuration
yaml
data_sources:
source:
Statsd:
listen_address: "0.0.0.0:8125"Configuration variables
| Variable | Default | Description |
|---|---|---|
listen_address | 0.0.0.0:8125 | UDP address to listen on |
format | json | Data format |
Authentication
No connector-specific authentication is required.
Troubleshooting
| Symptom | Fix |
|---|---|
| port already in use | Choose a different listen address or stop the process currently using that UDP port. |
| metrics are missing | Check sender configuration, network reachability, and any host firewall rules blocking UDP traffic. |
