Go to file
Victor Marmol d3754abee1 Merge pull request #559 from rjnagal/version
Move derived stats to v2. Add v2 container spec.
2015-03-04 10:53:01 -08:00
api Move derived stats to v2. Add v2 container spec. 2015-03-04 18:27:57 +00:00
client Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
container Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
deploy Add Travis check for Gofmt. 2015-01-05 11:28:06 -08:00
docs Add instructions for running the integration tests. 2015-03-02 11:11:39 -08:00
events Added a basic api interface for events 2015-02-26 14:14:25 -08:00
fs Merge pull request #444 from arkadijs/btrfs 2015-02-05 17:46:36 -08:00
Godeps Updating github.com/docker/docker/... godeps. 2015-03-03 08:56:04 -08:00
healthz Add missing copyright notices. 2015-01-09 00:06:04 +00:00
hooks Verify and fix error message nit :) 2015-01-14 01:15:13 +00:00
info Move derived stats to v2. Add v2 container spec. 2015-03-04 18:27:57 +00:00
integration Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
manager Move derived stats to v2. Add v2 container spec. 2015-03-04 18:27:57 +00:00
pages Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
storage Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
summary Move derived stats to v2. Add v2 container spec. 2015-03-04 18:27:57 +00:00
utils Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
validate Report status of hierarchical memory accounting in validate output. 2015-03-02 06:48:01 +00:00
version Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
.gitignore Re-adding .gitignore. 2015-02-09 15:16:45 -08:00
.travis.yml Add travis check for go files boilerplate. 2015-01-09 19:39:56 +00:00
AUTHORS Remove mention of contributors file. We don't have one. 2014-12-30 17:16:46 +00:00
cadvisor.go Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
CHANGELOG.md cAdvisor 0.10.1 2015-02-27 09:47:20 -08:00
CONTRIBUTING.md Add CONTRIBUTING.md 2014-06-10 13:09:14 -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 Adding runtime options docs. 2014-12-04 09:16:30 -08:00
storagedriver.go Make explicit the use of InMemoryStorage in Manager. 2015-02-18 14:09:59 -08:00
test.htdigest Added HTTP Auth and HTTP Digest authentication #302 2014-12-11 17:25:43 +05:30
test.htpasswd Added HTTP Auth and HTTP Digest authentication #302 2014-12-11 17:25:43 +05:30

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. cAdvisor running options may also be interesting for advanced usecases. 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 the documentation 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.