Statgrab - cross-platform access to statistics about the system
(Mentioned by rkeene on IRC)
From the main website:
libstatgrab is a library that provides cross platform access to statistics about the system on which it's run. It's written in C and presents a selection of useful interfaces which can be used to access key system statistics.
The current list of statistics includes:
- CPU usage
- memory utilisation
- disk usage
- process counts
- network traffic
- disk I/O
- and more...
The current list of supported and tested platforms includes FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX. We are always happy to accept patches to extend support to other operating systems.
Main website: https://www.i-scream.org/libstatgrab/
Hi, I'm doing porting gopsutil library to a crystal https://github.com/kodnaplakal/psutil.cr it's very similar like libstatgrab. Already done this metrics for Linux:
- CPU usage
- Memory usage
- Disk partitions
- Disk usage
- Disk I/O usage
- OS info
- OS load average
- Network I/O usage
Either one of those would be great. Especially if it also works on MacOS.
Yes, I am currently working on MacOS support
I'm working on a library right now for parsing the entirety of the /proc directory. It's functionality is limited so far, but I do plan on supporting everything in there. https://github.com/watzon/sysinfo.cr
We have -> https://github.com/crystal-community/hardware is that enough?