crystal-libraries-needed icon indicating copy to clipboard operation
crystal-libraries-needed copied to clipboard

Statgrab - cross-platform access to statistics about the system

Open bew opened this issue 8 years ago • 5 comments

(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/

bew avatar Sep 27 '17 17:09 bew

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

aablinov avatar Oct 21 '17 14:10 aablinov

Either one of those would be great. Especially if it also works on MacOS.

HCLarsen avatar Oct 21 '17 15:10 HCLarsen

Yes, I am currently working on MacOS support

aablinov avatar Oct 22 '17 07:10 aablinov

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

watzon avatar Feb 15 '18 03:02 watzon

We have -> https://github.com/crystal-community/hardware is that enough?

bararchy avatar May 30 '19 22:05 bararchy