Build a local observability stack with Docker Compose. You'll run Prometheus for metrics collection, Grafana for visualization, and an OpenTelemetry Collector to receive and route telemetry data. Starting state: Docker installed, no prior lab. After this lesson: ~/observability-lab/ running with Prometheus (:9090), Grafana (:3001), and OTel Collector (:4317/:4318/:8889). This lab directory is used for every lesson from 102 through 405.
Before building the stack, confirm that Docker and Docker Compose are available on your machine.
docker --versiondocker compose versionDocker runs each observability tool in its own container, so you don't need to install Prometheus, Grafana, or the OTel Collector directly on your machine. Docker Compose lets you define and start all the containers together with a single command.
You see version numbers for both Docker (e.g., 'Docker version 24.x' or newer) and Docker Compose (e.g., 'Docker Compose version v2.x').