You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cadvisor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cadvisor

a basic cadvisor HTTP API client

0.1.2
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

cadvsior

FAQs

Package last updated on 27 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts