cgroup-stats

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i cgroup-stats

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stjohnjohnson