The Alert That Never Fires
Customers of a small online shop say pages have taken seconds to load for the last ten minutes. The on-call phone stayed quiet.
The shop's Prometheus has an alert for exactly this, FrontendLatencyHigh: it should fire when 95% of the requests that reach frontend take longer than 1 second, for at least a minute.
| Tool | Holds | Address on this machine |
|---|---|---|
| Grafana | dashboards and Explore for the three below | http://127.0.0.1:3000 |
| Prometheus | metrics and alert rules | 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. Prometheus reads /etc/obs/prometheus.yml and the rules in /etc/obs/rules.yml.
Make FrontendLatencyHigh work again: right now, with the shop as slow as it is, it must be pending or firing in Prometheus.
for: 1m.frontend from the shop's own metrics, not a constant.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.
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.