# The missing target that raised no alert

A Prometheus rule detects `up == 0`, but stops alerting when the target's
series disappears altogether. Detect both cases and keep healthy targets
quiet.

## 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 demonstrate rule semantics, not an entire monitoring system.

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

Inspect `rules.yml` and the test cases. Extend the alert expression in
`rules.yml` so it detects both a failed scrape and absence for five minutes.
Keep the alert name and severity, and do not change `cases.yml` or the 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.
