Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Google Cloud Platform icon
Labs

Monitoring Containerized Application Health with Docker

Monitoring the health of your Docker host and its hosted containers ensures that you are aware of any issues—and potential issues—your containers may encounter. By leveraging tools like Docker healthchecks, cAdvisor, Prometheus, and Grafana, you gain insight into not just problems, but also gather important data about resource usage and application health and general functionality. In this lab, you will set up a full monitoring and health check stack to ensure you have deep insight into the happenings of your Docker setup.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 10, 2026
Duration
1h 15m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Prepare Docker for deploying the monitoring stack

    Configure Docker to expose host metrics using a wildcard address on the Prometheus-compatible metrics port, then create the monitoring network separate from the existing service network to host cAdvisor, Prometheus, and Grafana.

  2. Challenge

    Deploy cAdvisor and confirm its gathering metrics

    Run cAdvisor as a Docker container, ensuring it uses the recommended configuration to collect metrics data, is hosted on the monitoring network, and uses the ghcr.io/google/cadvisor:v0.60.5 image. Ensure this metrics data is available by navigating the cAdvisor web UI and verifying it populates data from the running jobqueue service.

  3. Challenge

    Update the job queue service to expose a health check endpoint

    Update the Dockerfile for the existing job queue microservice to include a HEALTHCHECK with an interval of 5 seconds, a timeout of 3 seconds, a start period of 25 seconds, and 3 retries for the existing /healthz endpoint. Rebuild the image, redeploy the microservice, then monitor the service health, waiting a bit for it to become (healthy).

  4. Challenge

    Deploy Prometheus and configure it to monitor the Docker host and applications

    Deploy a Prometheus container using a prometheus.yml configuration file stored in a newly-created ~/prometheus directory. This file should define the docker-host metrics endpoint, cadvisor, and the provided jobqueue application endpoint at port 5000 as scrape targets. Verify these endpoints are working by checking the Prometheus dashboard UI and running a few queries.

  5. Challenge

    Deploy Grafana and build a dashboard
    • Deploy Grafana as a Docker container.
    • Using the UI, change the Grafana password to astrongpassword, then set up Prometheus as a data source.
    • Configure a dashboard called Job Queue Service Dashboard with a panel called CPU Usage to show CPU usage over time (1 minute) for the job queue service, using a time-series visualization.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight