How to get machine/device statistics (ram usage, core usage, etc)

I am working on a self-hosted website, for running some things like game servers and also seeing statistics on how well your device/node is running, I need something that can output a value when i run it, at a interval or when invoked, so i can send it over to the frontend then add it to a graph (server side event and chart.js but thats offtopic). I dont think it would be in std so know any good libraries for cross-platform device statistics?

sysinfo sounds like a good fit.

2 Likes

Thank you that seems good.

Anyways sysinfo is working well, I integrated it into the backend and its working well, apparently there is some unsupported OS's but my thing is targeted to linux and windows anyways so it should be fine. I found out about other things called heim which is supposedly better for async, but I doubt it has anything super good about it which makes it worth switching too.

heim hasn't seen any updates in 4 years, all while being stuck on v0.1.0-rc.1. I'd say it is unmaintained at this point. On the other hand, Guillaume takes good care of sysinfo. I'd stick with sysinfo.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.