Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc