Cool project! As a more advanced form, I think it should be possible to get all this information via eBPF rather than ss output and scraping /proc.
Food for thought!
https://github.com/pythops/oryx
-> voila!
eBPF doesn't work on locked down kernels (stock kernels in Secure Boot mode).
https://github.com/pythops/oryx
-> voila!