node-stat

the statistics tool like dstat which outputs JSON. This module works only on Linux >= 2.6

node-stat

node-stat provides monitoring of Linux statistics to applications based on node.js.

Usage

npm install -g node-stat
nodestat
nodestat -i 5
var nodestat = require('node-stat');
setInterval(function() {
    nodestat.get('stat','net','load','disk', function(errdata) {
        console.log(JSON.stringify(data));
    });
}, 1000);

License

MIT