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

Monitor specific ports for network #1545

Open
Vibhu-Ag opened this issue Oct 30, 2023 · 1 comment
Open

Monitor specific ports for network #1545

Vibhu-Ag opened this issue Oct 30, 2023 · 1 comment

Comments

@Vibhu-Ag
Copy link

Is your feature request related to a problem? Please describe.
We use collectd for monitoring the health of VMs. While using collectd, we have the ability to monitor specific ports for network activity - https://collectd.org/wiki/index.php/Plugin:TCPConns.

Now as we migrate to Open Telemetry, this feature of monitoring specific ports is missing. This is crucial for us to have a parity between the systems during migration from one monitoring agent to another.

Opentelemetry uses gopsutil for picking hostmetrics, and this functionality is missing here.

Describe the solution you'd like
Ability to monitor specific ports while observing network activity.

Describe alternatives you've considered

Additional context
Refer the issue opened with OpenTelemetry here: open-telemetry/opentelemetry-collector-contrib#24898

@shirou
Copy link
Owner

shirou commented Oct 30, 2023

Thanks for the suggestion. Perhaps that functionality could be achieved by using net.Connections() to get all the connections, and then extracting the specified ports from them and counting them. (Perhaps there is a more efficient way to do this, though.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants