Go to file
Rohit Jnagal b0684c2457 Merge pull request #840 from anushree-n/fix
Change X and Y axes labels in custom metrics
2015-07-31 21:56:22 -07:00
api Add custom metrics to spec. 2015-07-25 20:17:54 +00:00
build Make a presubmit script to run all checkswq 2015-05-20 10:56:17 -07:00
cache Remove stats from cache when container is destroyed 2015-06-10 07:53:46 -07:00
client Added container_name field to event API 2015-04-15 16:51:15 -07:00
collector Add units and data type to spec for custom metrics. 2015-07-30 06:11:17 +00:00
container Add logic to read custom metric config files from container root. 2015-07-22 15:45:07 +00:00
deploy Add a self-built canary cAdvisor. 2015-06-26 14:47:21 -07:00
docs Update prometheus.md 2015-07-22 14:08:23 +02:00
events Fix handling of time ranges in timed store. 2015-05-07 16:44:22 +00:00
fs Add support for xfs. 2015-06-03 18:13:45 +00:00
Godeps removed the gomock files from the old location 2015-07-09 17:36:39 -07:00
healthz Refactor and centralize HTTP registration. 2015-03-10 18:00:10 -07:00
http Return error if can't register digest handler 2015-04-07 08:43:27 -07:00
info Merge pull request #839 from rjnagal/docker 2015-07-30 10:21:51 +02:00
integration Use watch instead of sh. 2015-07-01 14:54:35 -07:00
manager Merge pull request #838 from rjnagal/docker 2015-07-27 16:37:32 -07:00
metrics Expose multiple network interfaces in API. 2015-06-07 17:01:53 -07:00
pages Change X and Y axes labels in custom metrics 2015-07-31 18:10:15 -07:00
storage Update statsd storage - cpu, memory and network done 2015-07-28 14:55:15 -04:00
summary Export type to calculate percentiles 2015-07-21 17:52:01 -07:00
utils updated mock godep to use github instead of code.google.com 2015-07-09 17:22:38 -07:00
validate Add DebugInfo() API and put the information on /validate 2015-05-21 14:46:35 -07:00
version cAdvisor 0.16.0 2015-07-01 16:57:50 -07:00
.gitignore Re-adding .gitignore. 2015-02-09 15:16:45 -08:00
.travis.yml Make Travis use their new infra. 2015-07-14 08:47:09 -07:00
AUTHORS Remove mention of contributors file. We don't have one. 2014-12-30 17:16:46 +00:00
cadvisor.go Moved max_housekeeping and allow_dynamic_housekeeping flags to cadvisor.go 2015-07-21 20:26:57 +02:00
CHANGELOG.md cAdvisor 0.16.0 2015-07-01 16:57:50 -07: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 Minor organization update in running doc 2015-06-05 08:41:42 -07:00
storagedriver.go Update statsd storage - cpu, memory and network done 2015-07-28 14:55:15 -04: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. You can run a single cAdvisor to monitor the whole machine. 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, Fedora, 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.

cAdvisor also exposes container stats as Prometheus metrics. See the documentation for more information.

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.