There is a cross platform package https://github.com/shirou/gopsutil for retrieving statistics such as:
- Open file descriptors
- CPU percentage
- Open connections
- Number of threads
- Number of memory maps
- Number of children processes
- Disk usage
There is a cross platform package https://github.com/shirou/gopsutil for retrieving statistics such as: