-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(host_metrics source): add a new collector for tcp stats (#22057)
* feat(host_metrics): add a collector for TCP stats Add a new `tcp` collector to the `host_metrics` source to expose information about the systems's TCP stack. It exposes three metrics: * `tcp_connections_total`: The total number of TCP connections. It includes the `state` of the connection as a tag. * `tcp_tx_queued_bytes_total`: The sum of the number of bytes in the send queue across all connections. * `tcp_rx_queued_bytes_total`: The sum of the number of bytes in the receive queue across all connections. The collector is only enabled for Linux as it uses the netlink subsystem. Signed-off-by: Sanskar Jaiswal <[email protected]> * chore(host_metrics): add changelog fragment for tcp collector Signed-off-by: Sanskar Jaiswal <[email protected]> * chore(host_metrics): add docs for tcp collector Signed-off-by: Sanskar Jaiswal <[email protected]> * chore: update third party licenses Signed-off-by: Sanskar Jaiswal <[email protected]> * chore(host_metrics): include error source in snafu display msg Signed-off-by: Sanskar Jaiswal <[email protected]> * chore(host_metrics): update cue docs Signed-off-by: Sanskar Jaiswal <[email protected]> --------- Signed-off-by: Sanskar Jaiswal <[email protected]>
- Loading branch information
Showing
10 changed files
with
506 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -385,6 +385,10 @@ mongodb,https://github.com/mongodb/mongo-rust-driver,Apache-2.0,"Saghm Rossi <sa | |
multer,https://github.com/rousan/multer-rs,MIT,Rousan Ali <[email protected]> | ||
native-tls,https://github.com/sfackler/rust-native-tls,MIT OR Apache-2.0,Steven Fackler <[email protected]> | ||
ndk-context,https://github.com/rust-windowing/android-ndk-rs,MIT OR Apache-2.0,The Rust Windowing contributors | ||
netlink-packet-core,https://github.com/rust-netlink/netlink-packet-core,MIT,Corentin Henry <[email protected]> | ||
netlink-packet-sock-diag,https://github.com/rust-netlink/netlink-packet-sock-diag,MIT,"Flier Lu <[email protected]>, Corentin Henry <[email protected]>" | ||
netlink-packet-utils,https://github.com/rust-netlink/netlink-packet-utils,MIT,Corentin Henry <[email protected]> | ||
netlink-sys,https://github.com/rust-netlink/netlink-sys,MIT,Corentin Henry <[email protected]> | ||
nibble_vec,https://github.com/michaelsproul/rust_nibble_vec,MIT,Michael Sproul <[email protected]> | ||
nix,https://github.com/nix-rust/nix,MIT,The nix-rust Project Developers | ||
nkeys,https://github.com/wasmcloud/nkeys,Apache-2.0,wasmCloud Team | ||
|
14 changes: 14 additions & 0 deletions
14
changelog.d/21972-add-tcp-collector-host-metrics.feature.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The `host_metrics` source has a new collector, `tcp`. The `tcp` | ||
collector exposes three metrics related to the TCP stack of the | ||
system: | ||
|
||
* `tcp_connections_total`: The total number of TCP connections. It | ||
includes the `state` of the connection as a tag. | ||
* `tcp_tx_queued_bytes_total`: The sum of the number of bytes in the | ||
send queue across all connections. | ||
* `tcp_rx_queued_bytes_total`: The sum of the number of bytes in the | ||
receive queue across all connections. | ||
|
||
This collector is enabled only on Linux systems. | ||
|
||
authors: aryan9600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.