Add a collector to track TCP connections in the host_metrics
source
#21972
Labels
source: host_metrics
Anything `host_metrics` source related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
The
host_metrics
source can be enhanced by adding support for tracking TCP connections to it. This would let users get a sense of how many connections are in the system and in which state, along with the total tx/rx bytes. A good reference to use for the capabilities of the collector would be thetcpstat
collector innode_exporter
.Attempted Solutions
No response
Proposal
We should modify the
host_metrics
source to export three metrics:tcp_connections
of typegauge
tracking the total number of TCP connections. It'll have a labelstate
corresponding to the connection's state.tcp_tx_queued_bytes
of typegauge
tracking the cumulative sum of theSend-Q
across all connections.tcp_rx_queued_bytes
of typegauge
tracking the cumulative sum of theRecv-Q
across all connections.I'm happy to work on a PR for this.
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: