2018-07-11 23:43:49 +00:00
|
|
|
# Netstat Input Plugin
|
2015-10-11 14:13:35 +00:00
|
|
|
|
2018-07-11 23:43:49 +00:00
|
|
|
This plugin collects TCP connections state and UDP socket counts by using `lsof`.
|
2015-10-11 14:13:35 +00:00
|
|
|
|
2018-07-11 23:43:49 +00:00
|
|
|
### Configuration:
|
2015-10-11 14:13:35 +00:00
|
|
|
|
2018-07-11 23:43:49 +00:00
|
|
|
``` toml
|
|
|
|
# Collect TCP connections state and UDP socket counts
|
|
|
|
[[inputs.netstat]]
|
|
|
|
# no configuration
|
|
|
|
```
|
|
|
|
|
|
|
|
# Measurements:
|
|
|
|
|
|
|
|
Supported TCP Connection states are follows.
|
2015-10-11 14:13:35 +00:00
|
|
|
|
|
|
|
- established
|
|
|
|
- syn_sent
|
|
|
|
- syn_recv
|
|
|
|
- fin_wait1
|
|
|
|
- fin_wait2
|
|
|
|
- time_wait
|
|
|
|
- close
|
|
|
|
- close_wait
|
|
|
|
- last_ack
|
|
|
|
- listen
|
|
|
|
- closing
|
|
|
|
- none
|
|
|
|
|
|
|
|
### TCP Connection State measurements:
|
|
|
|
|
|
|
|
Meta:
|
|
|
|
- units: counts
|
|
|
|
|
|
|
|
Measurement names:
|
|
|
|
- tcp_established
|
|
|
|
- tcp_syn_sent
|
|
|
|
- tcp_syn_recv
|
|
|
|
- tcp_fin_wait1
|
|
|
|
- tcp_fin_wait2
|
|
|
|
- tcp_time_wait
|
|
|
|
- tcp_close
|
|
|
|
- tcp_close_wait
|
|
|
|
- tcp_last_ack
|
|
|
|
- tcp_listen
|
|
|
|
- tcp_closing
|
|
|
|
- tcp_none
|
|
|
|
|
|
|
|
If there are no connection on the state, the metric is not counted.
|
|
|
|
|
|
|
|
### UDP socket counts measurements:
|
|
|
|
|
|
|
|
Meta:
|
|
|
|
- units: counts
|
|
|
|
|
|
|
|
Measurement names:
|
|
|
|
- udp_socket
|