Go to file
2014-11-17 11:08:38 -08:00
api When an unknown error occurs set the HTTP status code to 500 2014-11-08 14:56:28 -07:00
client Made changes to client docs as recommended by @vmarmol 2014-10-20 08:42:03 -10:00
container Simplify how the Docker containers are handled. 2014-11-12 18:01:47 -08:00
deploy cAdvisor version 0.5.0 2014-10-28 10:19:41 -07:00
docs Reorganizing cAdvisor docs and moving many of them to their own pages. 2014-11-07 16:34:45 -08:00
fs gofmt all files 2014-10-21 05:23:23 +00:00
Godeps Update libcontainer for new net stats patch that uses less CPU. 2014-10-28 10:58:54 -07:00
healthz Add a /healthz endpoint to cAdvisor. 2014-08-30 00:52:25 -07:00
info cAdvisor 0.6.0 2014-11-17 11:08:38 -08:00
manager Simplify how the Docker containers are handled. 2014-11-12 18:01:47 -08:00
pages Fix Docker ALL reference 2014-11-17 10:07:40 -08:00
storage Add a StatsBuffer circular buffer for ContainerStats. 2014-11-07 15:21:40 -08:00
utils Use glog instead of 'log' library. 2014-08-07 18:38:58 +00:00
.gitignore LXC Factory and Handler 2014-10-14 20:01:44 +00:00
.travis.yml No-op for install 2014-09-26 14:21:31 -07:00
AUTHORS Migrating cAdvisor code from lmctfy 2014-06-09 12:12:07 -07:00
cadvisor.go Merge pull request #300 from rancherio/configure-ip 2014-11-13 08:20:05 -08:00
CHANGELOG.md cAdvisor 0.6.0 2014-11-17 11:08:38 -08:00
CONTRIBUTING.md Add CONTRIBUTING.md 2014-06-10 13:09:14 -07:00
CONTRIBUTORS Update Google contributors 2014-07-02 09:22:23 -07:00
LICENSE Migrating cAdvisor code from lmctfy 2014-06-09 12:12:07 -07:00
logo.png Adding logo to the README 2014-06-09 15:54:45 -07:00
README.md Reorganizing cAdvisor docs and moving many of them to their own pages. 2014-11-07 16:34:45 -08:00
storagedriver.go Removing sampling and percentiles from interface. 2014-09-15 14:13:07 -07:00

cAdvisor

cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide.

cAdvisor has native support for Docker containers and should support just about any other container type out of the box. We strive for support accross the board so feel free to open an issue if that is not the case. cAdvisor's container abstraction is based on lmctfy's so containers are inherently nested hierarchically.

cAdvisor

Quick Start: Running cAdvisor in a Docker Container

To quickly tryout cAdvisor on your machine with Docker, we have a Docker image that includes everything you need to get started. Simply run:

sudo docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --publish=8080:8080 \
  --detach=true \
  --name=cadvisor \
  google/cadvisor:latest

cAdvisor is now running (in the background) on http://localhost:8080. The setup includes directories with Docker state cAdvisor needs to observe.

Note: If you're running on CentOS, RHEL, or are using LXC take a look at our running instructions.

We have detailed instructions on running cAdvisor standalone outside of Docker. If you want to build your own cAdvisor Docker image see our deployment page.

Building and Testing

See the more detailed instructions in the build page. This includes instructions for building and deploying the cAdvisor Docker image.

InfluxDB and Cluster Monitoring

cAdvisor supports exporting stats to InfluxDB. See the documentation for more information and examples.

Heapster enables cluster wide monitoring of containers using cAdvisor.

Web UI

cAdvisor exposes a web UI at its port:

http://<hostname>:<port>/

See the documentation for more details.

Remote REST API & Clients

cAdvisor exposes its raw and processed stats via a versioned remote REST API. See the API's documentation for more information.

There is also an official Go client implementation in the client directory. See thedocumentation for more information.

Roadmap

cAdvisor aims to improve the resource usage and performance characteristics of running containers. Today, we gather and expose this information to users. In our roadmap:

  • Advise on the performance of a container (e.g.: when it is being negatively affected by another, when it is not receiving the resources it requires, etc)
  • Auto-tune the performance of the container based on previous advise.
  • Provide usage prediction to cluster schedulers and orchestration layers.

Community

Contributions, questions, and comments are all welcomed and encouraged! cAdvisor developers hang out in #google-containers room on freenode.net. We also have the google-containers Google Groups mailing list.