Recall & Review
beginner
What is Prometheus used for in Docker monitoring?
Prometheus collects and stores metrics from Docker containers to help monitor their performance and health.
Click to reveal answer
beginner
How does Prometheus get metrics from Docker containers?
Prometheus scrapes metrics from exporters running inside or alongside Docker containers, such as cAdvisor or node_exporter.
Click to reveal answer
intermediate
What is cAdvisor and why is it important for Docker monitoring with Prometheus?
cAdvisor is a tool that collects resource usage and performance data from Docker containers and exposes it in a format Prometheus can scrape.
Click to reveal answer
intermediate
Which file do you configure to tell Prometheus where to find Docker metrics?
You configure the 'prometheus.yml' file to add scrape jobs that point to Docker metrics endpoints like cAdvisor.
Click to reveal answer
beginner
What command starts Prometheus with a custom configuration file for Docker monitoring?
docker run -d -p 9090:9090 -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
Click to reveal answer
What port does Prometheus use by default to serve its web UI?
✗ Incorrect
Prometheus uses port 9090 by default for its web interface.
Which tool exposes Docker container metrics for Prometheus to scrape?
✗ Incorrect
cAdvisor collects and exposes Docker container metrics in a format Prometheus can scrape.
Where do you specify the targets Prometheus should scrape?
✗ Incorrect
The prometheus.yml file contains scrape configurations including targets.
What is the main purpose of Prometheus in Docker monitoring?
✗ Incorrect
Prometheus collects and stores metrics to monitor container health and performance.
Which command runs Prometheus in a Docker container exposing port 9090?
✗ Incorrect
This command runs Prometheus container and maps port 9090 for access.
Explain how Prometheus monitors Docker containers and what components are involved.
Think about how Prometheus gets data from containers.
You got /4 concepts.
Describe the steps to set up Prometheus to monitor Docker containers on your local machine.
Focus on running exporters and configuring Prometheus.
You got /4 concepts.