| ▲ | mordechai9000 5 hours ago | |
Nice work! I do want to say, I don't like having to rely on scraping ss output. But that's not a comment on this project - I have done the exact same thing. It just proved to be the most expedient way given the constraints I was under. I suspect there is a lot of devops and CI/CD code out there that relies on the output format of ss. My concern is that parsing text intended for human readability and not machine processing is brittle and prone to failure due to unforeseen circumstances, or a package upgrade that changes the behavior. | ||
| ▲ | mbana an hour ago | parent [-] | |
I was going to say the same thing. I really like the eBPF approach as pointed out to by the other comments. I feel like this is the ideal approach, please correct me if I'm wrong. A callback based approach as opposed to (constantly) polling the output of some command is ideal. | ||