node-stat

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

npm install node-stat
2 downloads in the last day
153 downloads in the last week
283 downloads in the last month

node-stat

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

Usage

Use on console

npm install -g node-stat
nodestat
nodestat -i 5

Use as module

var nodestat = require('node-stat');
setInterval(function() {
    nodestat.get('stat','net','load','disk', function(err, data) {
        console.log(JSON.stringify(data));
    });
}, 1000);

License

MIT

npm loves you