• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Godeps/H12-Feb-2016-139,29398,597

api/H12-Feb-2016-877676

build/H12-Feb-2016-433190

cache/H12-Feb-2016-277173

client/H12-Feb-2016-1,003773

collector/H12-Feb-2016-1,102720

container/H12-Feb-2016-3,2812,166

deploy/H12-Feb-2016-5225

docs/H12-Feb-2016-695454

events/H12-Feb-2016-533367

fs/H12-Feb-2016-1,017838

healthz/H12-Feb-2016-3313

http/H12-Feb-2016-13885

info/H12-Feb-2016-2,1811,403

integration/H12-Feb-2016-1,388930

manager/H12-Feb-2016-2,5461,997

metrics/H12-Feb-2016-1,006910

pages/H12-Feb-2016-3,3872,855

storage/H12-Feb-2016-2,3271,654

summary/H12-Feb-2016-780582

utils/H12-Feb-2016-2,9992,164

validate/H12-Feb-2016-453373

version/H12-Feb-2016-3718

.gitignoreH A D12-Feb-201618 32

.travis.ymlH A D12-Feb-2016207 1312

AUTHORSH A D12-Feb-2016256 106

CHANGELOG.mdH A D12-Feb-20166.5 KiB206171

CONTRIBUTING.mdH A D12-Feb-2016872 158

LICENSEH A D12-Feb-201610.5 KiB191160

MakefileH A D12-Feb-20161.1 KiB4522

README.mdH A D12-Feb-20164 KiB6740

cadvisor.goH A D12-Feb-20164.9 KiB14495

storagedriver.goH A D12-Feb-20161.7 KiB4928

test.htdigestH A D12-Feb-201649 21

test.htpasswdH A D12-Feb-201644 21

README.md

1# cAdvisor
2
3cAdvisor (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.
4
5cAdvisor has native support for [Docker](https://github.com/docker/docker) containers and should support just about any other container type out of the box. We strive for support across the board so feel free to open an issue if that is not the case. cAdvisor's container abstraction is based on [lmctfy](https://github.com/google/lmctfy)'s so containers are inherently nested hierarchically.
6
7![cAdvisor](logo.png "cAdvisor")
8
9#### Quick Start: Running cAdvisor in a Docker Container
10
11To 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:
12
13```
14sudo docker run \
15  --volume=/:/rootfs:ro \
16  --volume=/var/run:/var/run:rw \
17  --volume=/sys:/sys:ro \
18  --volume=/var/lib/docker/:/var/lib/docker:ro \
19  --publish=8080:8080 \
20  --detach=true \
21  --name=cadvisor \
22  google/cadvisor:latest
23```
24
25cAdvisor is now running (in the background) on `http://localhost:8080`. The setup includes directories with Docker state cAdvisor needs to observe.
26
27**Note**: If you're running on CentOS, Fedora, RHEL, or are using LXC take a look at our [running instructions](docs/running.md).
28
29We have detailed [instructions](docs/running.md#standalone) on running cAdvisor standalone outside of Docker. cAdvisor [running options](docs/runtime_options.md) may also be interesting for advanced usecases. If you want to build your own cAdvisor Docker image see our [deployment](docs/deploy.md) page.
30
31## Building and Testing
32
33See the more detailed instructions in the [build page](docs/build.md). This includes instructions for building and deploying the cAdvisor Docker image.
34
35## InfluxDB and Cluster Monitoring
36
37cAdvisor supports exporting stats to [InfluxDB](https://influxdb.com/). See the [documentation](docs/influxdb.md) for more information and examples.
38
39cAdvisor also exposes container stats as [Prometheus](http://prometheus.io) metrics. See the [documentation](docs/prometheus.md) for more information.
40
41[Heapster](https://github.com/kubernetes/heapster) enables cluster wide monitoring of containers using cAdvisor.
42
43## Web UI
44
45cAdvisor exposes a web UI at its port:
46
47`http://<hostname>:<port>/`
48
49See the [documentation](docs/web.md) for more details.
50
51## Remote REST API & Clients
52
53cAdvisor exposes its raw and processed stats via a versioned remote REST API. See the API's [documentation](docs/api.md) for more information.
54
55There is also an official Go client implementation in the [client](client/) directory. See the [documentation](docs/clients.md) for more information.
56
57## Roadmap
58
59cAdvisor aims to improve the resource usage and performance characteristics of running containers. Today, we gather and expose this information to users. In our roadmap:
60- 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)
61- Auto-tune the performance of the container based on previous advise.
62- Provide usage prediction to cluster schedulers and orchestration layers.
63
64## Community
65
66Contributions, questions, and comments are all welcomed and encouraged! cAdvisor developers hang out on [Freenode](http://freenode.net/) IRC in the [#google-containers](http://webchat.freenode.net/?channels=google-containers) room & [Slack](https://kubernetes.slack.com) (get an invitation [here](http://slack.kubernetes.io/)). We also have the [google-containers Google Groups mailing list](https://groups.google.com/forum/#!forum/google-containers).
67