I wanna know how can I get the stats of my project, like the memory usage, cpu usage of the app, disk usage? I’m new to this, so yeah.
Anything like local cpuusage = app.stats:Get(ProcessorUsage) for the cpu percentage (this is a Luascript example) would be great enough! I just want to know about CPU, Memory and the Disk Usage.
I actually haven’t used this package - let me look at the docs real quick.
I looked at this site - https://hackathon-starter.walcony.com/status - (the demo) and I have no clue where the data is coming from. It seems to be something doing with a sockets connection.
That’s cool! Works on OSX, Linux, SmartOS and Solaris <- from the NPM page.
Glitch’s servers might be using a different OS? Try emailing support@glitch.com
While Linux should work, you may have issues with this package since it appears to be rather old and unmaintained. So it may not work with more recent versions of node.
Please note that if you need to check a Node.JS script process cpu and memory usage, you can use process.cpuUsage and process.memoryUsage since node v6.1.0. This script remain useful when you have no control over the remote script, or if the process is not a Node.JS process.
I will copy this information over to your support request for easy reference. If you have additional questions, feel free to ask them here or in your support request. Whatever works best for you!