Bird
0
0

What is the recommended architecture to monitor multiple Docker hosts with Prometheus and cAdvisor?

hard📝 Workflow Q8 of 15
Docker - Logging and Monitoring
What is the recommended architecture to monitor multiple Docker hosts with Prometheus and cAdvisor?
AInstall Prometheus on each host and aggregate metrics manually
BRun a single cAdvisor instance scraping all hosts remotely
CUse Prometheus pushgateway on each host to push metrics to a central Prometheus
DDeploy cAdvisor on each host and configure Prometheus to scrape each host's cAdvisor endpoint
Step-by-Step Solution
Solution:
  1. Step 1: Understand multi-host monitoring

    Each Docker host runs its own cAdvisor to expose local container metrics.
  2. Step 2: Prometheus scraping

    Prometheus is configured to scrape each cAdvisor endpoint individually.
  3. Final Answer:

    Deploy cAdvisor on each host and configure Prometheus to scrape each host's cAdvisor endpoint -> Option D
  4. Quick Check:

    Central scraping of local exporters is best practice. [OK]
Quick Trick: One cAdvisor per host, Prometheus scrapes all. [OK]
Common Mistakes:
  • Trying to scrape all hosts from a single cAdvisor
  • Using pushgateway incorrectly for container metrics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes