Add TCP listener for statsd input (#2293)

This commit is contained in:
Slawomir Skowron
2017-08-08 20:41:26 +02:00
committed by Daniel Nelson
parent 6ebb93abcc
commit b9b5b74ede
5 changed files with 350 additions and 8 deletions

View File

@@ -5,6 +5,12 @@
```toml
# Statsd Server
[[inputs.statsd]]
## Protocol, must be "tcp" or "udp" (default=udp)
protocol = "udp"
## MaxTCPConnection - applicable when protocol is set to tcp (default=250)
max_tcp_connections = 250
## Address and port to host UDP listener on
service_address = ":8125"
@@ -146,6 +152,9 @@ metric type:
### Plugin arguments
- **protocol** string: Protocol used in listener - tcp or udp options
- **max_tcp_connections** []int: Maximum number of concurrent TCP connections
to allow. Used when protocol is set to tcp.
- **service_address** string: Address to listen for statsd UDP packets on
- **delete_gauges** boolean: Delete gauges on every collection interval
- **delete_counters** boolean: Delete counters on every collection interval