I want to write a linux metric agent to gather linux metrics in both System Level and Process Level. I'm pretty like linux command sar and pidstat, both of them come from sysstat.rpm.
I want my agent have a similar ability to gather metrics like sysstat but with more configurable options. like I want to gather the metrics and send the result to our special monitor system.
The key issue I want to address here is I want to build this tools based on some other tools, like procfs. procsfs is great since it depends /proc only. I checked the procfs module, but find this module doesn't provides much Process level metric like pidstat provides. Do you know any module which is based on /proc and can provide the data like pidstat?