cadvisor
v0.1.2
Published
a basic cadvisor HTTP API client
Downloads
1
Readme
cadvisor
a basic cadvisor HTTP API client
install
$ npm install cadvisor
usage
var cadvisor = require('cadvisor')
var backend = cadvisor('127.0.0.1:8080')
// get machine information
backend.machine(function(err, data){
})
// get top level
backend.container('/', function(err, data){
})
// get docker containers
backend.container('/docker', function(err, data){
})
// get a specific docker container information
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