Grafana, Prometheus, and Loki Stack
Full observability Docker Compose stack: Prometheus for metrics, Loki for logs, Grafana with pre-wired datasources and starter dashboards. Ready in one command.
Grafana, Prometheus, and Loki Stack
Full observability for your Docker infrastructure in one command. Prometheus collects metrics, Loki aggregates logs, and Grafana visualizes everything — with datasources pre-wired and starter dashboards ready on first boot.
What Is Included
- Prometheus — Metrics collection with Node Exporter and cAdvisor pre-configured as scrape targets
- Loki — Log aggregation backend with Grafana Alloy shipping all container logs automatically
- Grafana — Pre-provisioned with both Prometheus and Loki datasources; no manual setup required
- Starter Dashboards — Node overview, Docker host resources, and container logs dashboard imported on first boot
How It Works
- Run
docker compose up -d— all five services start and health-check each other - Grafana datasources are provisioned automatically via the
provisioning/datasourcesdirectory - Dashboards are imported automatically via
provisioning/dashboards - Alloy is configured to collect logs from all running containers via the Docker socket
What You Get
docker-compose.yml— all five services with named volumes and health checksprometheus.yml— scrape config with Node Exporter and cAdvisor targetsloki-config.yaml— Loki storage and retention configurationalloy-config.alloy— Docker log collection via socketgrafana/provisioning/— datasource and dashboard provisioning filesgrafana/dashboards/— three starter JSON dashboards.env.exampleandREADME.md
Service URLs
| Service | URL |
|---|---|
| Grafana | http://localhost:3000 |
| Prometheus | http://localhost:9090 |
| Node Exporter metrics | http://localhost:9100/metrics |
Requirements
Docker Engine with the Compose plugin. Default Grafana credentials are admin / admin — change on first login.