docs(inputs.socketstat): fix wrong TOML option name. (#12482)

This commit is contained in:
Sven Rebhan 2023-01-10 14:45:21 +01:00 committed by GitHub
parent 7b5b342432
commit b543efdcfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 19 deletions

View File

@ -25,31 +25,35 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
[[inputs.socketstat]]
## ss can display information about tcp, udp, raw, unix, packet, dccp and sctp sockets
## Specify here the types you want to gather
socket_types = [ "tcp", "udp" ]
protocols = [ "tcp", "udp" ]
## The default timeout of 1s for ss execution can be overridden here:
# timeout = "1s"
```
## Measurements & Fields
## Metrics
- socketstat
- state (string) (for tcp, dccp and sctp protocols)
- If ss provides it (it depends on the protocol and ss version):
- bytes_acked (integer, bytes)
- bytes_received (integer, bytes)
- segs_out (integer, count)
- segs_in (integer, count)
- data_segs_out (integer, count)
- data_segs_in (integer, count)
The measurements `socketstat` contains the following fields
## Tags
- state (string) (for tcp, dccp and sctp protocols)
- All measurements have the following tags:
- proto
- local_addr
- local_port
- remote_addr
- remote_port
If ss provides it (it depends on the protocol and ss version) it has the
following additional fields
- bytes_acked (integer, bytes)
- bytes_received (integer, bytes)
- segs_out (integer, count)
- segs_in (integer, count)
- data_segs_out (integer, count)
- data_segs_in (integer, count)
All measurements have the following tags:
- proto
- local_addr
- local_port
- remote_addr
- remote_port
## Example Output

View File

@ -2,6 +2,7 @@
[[inputs.socketstat]]
## ss can display information about tcp, udp, raw, unix, packet, dccp and sctp sockets
## Specify here the types you want to gather
socket_types = [ "tcp", "udp" ]
protocols = [ "tcp", "udp" ]
## The default timeout of 1s for ss execution can be overridden here:
# timeout = "1s"