# The alert that never stops firing

A Prometheus alert fires on a cumulative error counter even after errors stop.
Repair the rule so it detects recent bursts instead of the lifetime total.

## Before you begin

Use Docker, Bash and Python 3 on a disposable machine. The lab runs the
official Prometheus `promtool` in disposable containers with no network or
host ports, using fixed synthetic series. Docker may download the image and
uses local disk and compute. No live Prometheus server or real incident data is
used. The tests illustrate a small alert contract, not production thresholds.

```sh
./setup.sh
./lab.sh
```

Inspect `rules.yml` and the test cases. Modify the alert expression in
`rules.yml`, keeping the alert name and severity. It must remain quiet when
the counter is stable, alert on a recent burst, and handle a counter reset.
Do not change `cases.yml` or the test runner.

```sh
./verify.sh
./teardown.sh
```

Verification checks the original test fixtures and runs the actual Prometheus
rule evaluator. Teardown does not remove the shared Docker image or edited
files; re-extract the bundle to reset the incident.
