influxdata / influxdata/telegraf

netstat to collect tcp connections per port

Open
#9,348 2 comments 0 reactions 0 assignees View on GitHub
feature request help wanted size/m
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

## Feature Request

### Proposal:
I'd like to see implemented the `netstat` plugin to collect the connection states per port that the system/a service listens on, just like the [TCPConns](https://collectd.org/wiki/index.php/Plugin:TCPConns) plugin of collectd

### Current behavior:
The netstat plugin only gathers the amount of state types.

### Desired behavior:
The netstat plugin gathers amount of state types per port.

### Use case:
Currently we're using the collectd plugin to show us how much connections each of our dovecot backend nodes is handling. We'd like to replace this with Telegraf.

Contributor guide

Open the contributing guide

Research direction

Start by reading Telegraf's netstat plugin and the issue's reference to collectd's TCPConns plugin. Trace how the plugin currently counts connection state types, then determine how per-port state counts should be represented; done means the netstat plugin reports connection states for each listening port and covers the requested behavior with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.