Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a collector to track TCP connections in the host_metrics source #21972

Open
aryan9600 opened this issue Dec 6, 2024 · 0 comments · May be fixed by #22057
Open

Add a collector to track TCP connections in the host_metrics source #21972

aryan9600 opened this issue Dec 6, 2024 · 0 comments · May be fixed by #22057
Labels
source: host_metrics Anything `host_metrics` source related type: feature A value-adding code addition that introduce new functionality.

Comments

@aryan9600
Copy link

aryan9600 commented Dec 6, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

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 the tcpstat collector in node_exporter.

Attempted Solutions

No response

Proposal

We should modify the host_metrics source to export three metrics:

  • tcp_connections of type gauge tracking the total number of TCP connections. It'll have a label state corresponding to the connection's state.
  • tcp_tx_queued_bytes of type gauge tracking the cumulative sum of the Send-Q across all connections.
  • tcp_rx_queued_bytes of type gauge tracking the cumulative sum of the Recv-Q across all connections.

I'm happy to work on a PR for this.

References

No response

Version

No response

@aryan9600 aryan9600 added the type: feature A value-adding code addition that introduce new functionality. label Dec 6, 2024
@jszwedko jszwedko added the source: host_metrics Anything `host_metrics` source related label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: host_metrics Anything `host_metrics` source related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants