Ingest and Structure Historical Pod Alerts
Design a reliable data pipeline that converts a messy historical pod-alert corpus into a measurable, queryable, and evolvable structured data product.
Problem statement
For this exercise, assume an internal platform team has six months of pod-alert records stored as one column of long, messy free-form strings. The corpus is immutable, but new records continue to arrive as append-only daily files.
Operations analysts need to filter and export normalized alerts, while platform engineers need to inspect parser quality and safely reprocess exceptions. Design the ingestion and serving system.
The normalized record should expose observed time, cluster, namespace, pod, alert type or reason, severity, normalized message, parse status and confidence, a raw-record reference, and parser version; any field may be explicitly unknown.
Preserve raw lineage, avoid duplicate canonical records on retries, and quarantine low-confidence output rather than silently coercing it.
Explain the data you create, how consumers use it, how you measure coverage and accuracy, and how a practical near-term parser can evolve toward a versioned typed envelope from upstream producers. Alert-condition detection, pod remediation, and a general-purpose log-search product are out of scope.
What to build
- Backfill the historical corpus and ingest new daily files through one resumable, idempotent workflow.
- Create validated structured alert records with explicit unknowns, confidence, parser version, and immutable raw-record lineage.
- Let authorized consumers filter, page through, and export accepted alerts while platform engineers inspect exceptions.
- Report field coverage and labeled-sample accuracy, detect drift, and reprocess bounded ranges with a reviewed parser version.
At scale
- Process up to 10 million historical rows within 24 hours, then up to 100,000 new rows per day with short bursts of 20 rows per second.
- Publish accepted incremental records and exceptions within 30 minutes of a daily file becoming available.
- Produce the required structured fields for at least 90% of rows, and achieve at least 98% precision for accepted high-confidence fields on a continuously reviewed stratified labeled sample.