Skip to content

Lesson 7 of 9 · 25m

Pipeline Observability and Incident Response

Instrument freshness, volume, quality, lineage, and runtime state so responders can separate source failure, transform failure, and consumer misuse quickly.

When a data pipeline breaks, the first visible symptom is usually downstream and vague: a dashboard is empty, a model score collapses, finance sees inconsistent totals. By the time the data team is paged, three teams have already burned time blaming their own code. Observability shortens that search. It is not a wall of charts; it is the ability to answer where truth stopped flowing.

Measure the data, not just the job

Job success metrics are insufficient. A transform can succeed while producing zero rows because the source filter changed. Track pipeline-boundary telemetry:

input freshness       newest source timestamp observed
input volume          rows/bytes/events per partition or window
output freshness      newest committed output partition
output volume         rows/bytes committed
quality status        gate results and quarantined counts
consumer lag          stream offsets or query freshness

Put those values in run metadata, not only in ephemeral logs.

Metadata beats vibes

A compact run record makes incident review possible:

{
  "pipeline": "orders_daily",
  "partition": "2026-03-14",
  "input_rows": 1849220,
  "output_rows": 1849138,
  "quarantined_rows": 82,
  "watermark": "2026-03-15T05:59:00Z",
  "code_version": "git:3f4a91d"
}

When someone asks whether yesterday was abnormal, this record answers with facts. Without it, the incident becomes oral history.

Alert on consumer impact, then diagnose in layers

A task failure does not always matter immediately; a stale fraud feature does. Define service-level indicators around the data product:

freshness SLO     analytics.orders partition available by 07:00 UTC
completeness SLO  no less than 98% of expected source rows after reconciliation
quality SLO       zero duplicate order IDs in published output

Use the same diagnostic sequence every time: source freshness, extraction window, validation outcome, publication commit, consumer query. That ordering prevents the classic mistake of debugging SQL logic when the upstream API silently returned empty pages.

Incident response includes communication

Data incidents are weird because wrong data can look plausible. If bad output reached users, say so clearly, identify affected partitions, stop downstream consumption when necessary, preserve evidence, validate repaired output in staging, and restate affected ranges deliberately.

Field notes

  • Keep logs structured and attach run IDs; free-text logs are nearly useless when ten copies of the same backfill run concurrently.
  • Lineage is most valuable during incidents. Knowing which dashboards consume a table changes severity immediately.
  • Do not delete corrupted output before investigation unless it is actively harmful. Preserve evidence in quarantine.
  • Alert thresholds based only on duration miss correctness failures. A fast, successful job can still publish empty garbage.

Was this lesson helpful?

Sign in to rate