0
0
Dockerdevops~5 mins

Prometheus for Docker monitoring - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A8080
B3000
C9090
D9100
Which tool exposes Docker container metrics for Prometheus to scrape?
AcAdvisor
BGrafana
CKubernetes
DDocker Compose
Where do you specify the targets Prometheus should scrape?
Aconfig.json
BDockerfile
Cdocker-compose.yml
Dprometheus.yml
What is the main purpose of Prometheus in Docker monitoring?
ABuild Docker images
BCollect and store container metrics
CDeploy containers
DManage container networking
Which command runs Prometheus in a Docker container exposing port 9090?
Adocker run -d -p 9090:9090 prom/prometheus
Bdocker run -d -p 8080:8080 prom/prometheus
Cdocker start prometheus
Ddocker exec -it prometheus bash
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.