DataOps Observer
← All labs

Backup monitoring / Intermediate / 20–30 min

The failed backup that looked healthy

A synthetic backup failure refreshes a healthy heartbeat. Trace the monitoring signal and restore alerts for missing successful runs.

LAB IDdataops-03-failed-backup-heartbeatTRACK / dataops.observer
Engineer monitoring a data pipeline beside storage servers

The scenario

A local heartbeat evaluator reports a healthy backup even though the latest synthetic job failed and the last success is overdue. Investigate how job results become health signals and correct the ingestion policy.

Mission objectives

  • Reproduce the misleading healthy status.
  • Inspect the job results and heartbeat ingestion policy.
  • Restore overdue-success detection without breaking healthy or missing-heartbeat cases.

Lab README

The failed backup that looked healthy

A monitoring evaluator reports a healthy backup, but the latest synthetic job failed and the last successful run is overdue. Diagnose how the evaluator selects its success heartbeat.

Before you begin

Use Bash and Python 3. This self-contained simulation does not run a real backup, timer, remote monitor or AI model. It uses synthetic events and fixed timestamps for repeatable results; it sends no data and creates no cloud resources.

Investigate

./setup.sh
cat events.json
cat policy.json
python3 monitor.py --events events.json --now 1601

The timestamps are seconds on a synthetic clock. A success heartbeat is overdue when it is more than 120 seconds old. Compare the selected heartbeat with each job's exit code. Fix the ingestion policy without changing the events, the freshness window or the evaluator.

./verify.sh
./teardown.sh

Verification checks the original incident and independent healthy, failed and missing-heartbeat examples. The evaluator reports stale success, not immediate job-failure notifications: a failure following a still-fresh success does not produce an immediate alert. A successful process can also back up an empty directory, so a real deployment still needs source checks and restore tests. Teardown has no services or cloud resources to remove; re-extract the bundle to reset the edited policy.

The related restic/systemd guide and recorded demonstration show real backup monitoring, not this simulation.

View Markdown source ↗

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/dataops-03-failed-backup-heartbeat.sh
less dataops-03-failed-backup-heartbeat.sh
bash dataops-03-failed-backup-heartbeat.sh
cd labs/dataops-03-failed-backup-heartbeat
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare the exit codes and timestamps in events.json with the monitor's selected heartbeat.

Hint #2

Inspect which job results the ingestion policy treats as success; keep the freshness window unchanged.

Hint #3 · Related guide on opsbreakfix.com

Read the related guide ↗

Solved it?

Explore the related guide on opsbreakfix.com.

Continue to opsbreakfix.com ↗