Chapter 3. Advanced Container Resource Analysis

In the last chapter, we looked at how you can use the API built into Docker to gain an insight to what resources your containers are running. Now, we are to see how we can take it to the next level by using cAdvisor from Google. In this chapter, you will cover the following topics:

  • How to install cAdvisor and start collecting metrics
  • Learn all about the web interface and real-time monitoring
  • What your options are for shipping metrics to a remote Prometheus database for long-term storage and trend analysis

What is cAdvisor?

Google describes cAdvisor as follows:

"cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. ...

Get Monitoring Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.