cadvisor
a basic cadvisor HTTP API client
install
$ npm install cadvisor
usage
var cadvisor = require('cadvisor')
var backend = cadvisor('127.0.0.1:8080')
backend.machine(function(err, data){
})
backend.container('/', function(err, data){
})
backend.container('/docker', function(err, data){
})
backend.container('/docker/mycontainer', function(err, data){
})
api
var backend = cadvisor(endpoint)
Create a new cadvisor backend by passing the 'host:port' endpoint string:
var backend = cadvisor('127.0.0.1:8080')
backend.machine(function(err, info){})
Load machine wide information
backend.container(path, function(err, info){})
Load a specific containers information.
Note that the root container (/) contains usage for the entire machine. All Docker containers are listed under /docker.
licence
MIT