Requests Are Failing: Find Where It Starts
You are on call for a small online shop, and your pager just went off. The page is in ~/page.txt.
The shop is five services: frontend, cart, checkout, payments and inventory. Every service has its own database and calls one outside system. A request from a customer enters at frontend and can pass through several services.
All of them report to the tools on this machine:
| Tool | Holds | Address on this machine |
|---|---|---|
| Grafana | dashboards and Explore for the three below | http://127.0.0.1:3000 |
| Prometheus | metrics | http://127.0.0.1:9090 |
| Loki | logs | http://127.0.0.1:3100 |
| Tempo | traces | http://127.0.0.1:3200 |
Open Grafana and Prometheus with the buttons above the terminal. Loki and Tempo have no pages of their own: use them in Grafana (Explore, then pick the data source), or query any of the four from the terminal with curl at the addresses above.
Customers say they get error pages.
Find the service where the problem starts, and what is wrong with it. Write one line to /home/student/answer.txt: the service, a space, the cause.
cart slow-query
The cause is one of:
| Cause | Meaning |
|---|---|
db-pool | the service has no free database connections left |
slow-query | one of its database queries has become slow |
dep-timeout | the outside system it calls stopped answering in time |
cpu-throttle | the service itself is starved of CPU |
bad-deploy | a new version of the service has a bug |
cert-expired | the outside system's TLS certificate is no longer valid |
rate-limited | the outside system is refusing some of its calls |
memory-leak | the service runs out of memory and is restarted, again and again |
About this machine
Ubuntu 24.04 with no internet access, running the real Prometheus, Loki, Tempo and Grafana (unmodified) and a simulated shop that reports to them. Once the machine is running, Grafana and Prometheus open in a new tab from the buttons above the terminal. The history goes back about an hour. curl, jq and promtool are installed. The grader checks your answer, not the commands you typed. BrokenCluster is not affiliated with, endorsed or sponsored by Grafana Labs or the Prometheus project.
Part of Observability in Practice
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.