Skip to content

TCP & UDP Connections By Cgroup #5

@strategicpause

Description

@strategicpause

I haven't found a great way to show the number of TCP / UDP connections by processes in a cgroup. I propose the following:

  1. Iterate through PIDs in a cgroup
  2. Look at /proc//net/tcp for the number of TCP connections for a given process.
  3. Sum up the number of connections.

github.com/prometheus/procfs should be able to help with the heavy lifting of fetching TCP metrics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions