1.0.1 • Published 8 years ago

cgroup-stats v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

cgroup-stats

version downloads build status license

Node Module for reading Control Group usage stats

Currently this reads the following data:

This only works on Linux operating systems

Usage

var cgroupStats = require('cgroup-stats');

cgroupStats(function (error, data) {
    console.log(data.memory.usage_in_bytes);
    console.log(data.memory.max_usage_in_bytes);
    console.log(data.cpuacct.stat.user);
    console.log(data.cpuacct.stat.system);
});

License

Code licensed under the MIT license. See LICENSE file for terms.