suguru / node-stat

statistics tool which output Linux statistics as JSON format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

statistics tool which output Linux statistics as JSON format

License:MIT License


Languages

Language:JavaScript 100.0%