Sign inSign up free

1427. The Alert That Never Fires

medium 20 XP ~15 minHands-on lab

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.

ToolHoldsAddress on this machine
Grafanadashboards and Explore for the three belowhttp://127.0.0.1:3000
Prometheusmetrics and alert ruleshttp://127.0.0.1:9090
Lokilogshttp://127.0.0.1:3100
Tempotraceshttp://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.

Task

Make FrontendLatencyHigh work again: right now, with the shop as slow as it is, it must be pending or firing in Prometheus.

  • Keep the alert's name, its 1-second threshold and its for: 1m.
  • It must measure the response time of frontend from the shop's own metrics, not a constant.
  • Don't change the other alert.

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. Next step: Know When a Service Stops Reporting

Teaching or writing about this? Embed this lab on your page

TerminalNot started

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.