Original post

Looking to build a network monitoring tool but I require a library that will make it easy for me to get network IO stats on a per-process basis. I have found libraries like https://github.com/shirou/gopsutil but they simply look at /proc/net/dev on Linux which only provides network IO stats on each interface. Not for each process. Currently the only tool I know that can provide such a thing is nethogs (which is writtent in C++) but surely someone has written a package to be the equivalent?