---
title: "How we measure data completeness at scale"
description: "Datadog measures ingestion data completeness per customer by splitting pipelines into segments and recording create and acknowledgment events keyed by unique payload IDs in 60-second time buckets."
url: "https://swe.quest/articles/how-we-measure-data-completeness-at-scale-1fbada4ceb0e9c2d"
canonical: "https://www.datadoghq.com/blog/engineering/data-pipeline-completeness/"
source: "Datadog Engineering"
published: "2026-07-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["data-pipelines","observability","distributed-systems","resilience","system-design"]
---

# How we measure data completeness at scale

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2026-07-01, 16 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/data-pipeline-completeness/](https://www.datadoghq.com/blog/engineering/data-pipeline-completeness/)

## Summary

Datadog measures ingestion data completeness per customer by splitting pipelines into segments and recording create and acknowledgment events keyed by unique payload IDs in 60-second time buckets. This makes counts idempotent under retries and reordering. Watermarks were rejected because customers can send arbitrarily delayed data and pipelines contain loops and replays. Segment ratios are multiplied along sequential paths and volume-weighted across parallel branches. Cost and resilience come from per-customer sampling driven by a two-stage load-shedding bulletin, a custom lock-free in-memory store with a worker-per-shard design, and no dependency on Kafka or external databases, so the system kept running through a Kafka incident.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- streaming data pipelines ([easy posts on Stream processing](https://swe.quest/tags/stream-processing.md?difficulty=easy))
- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- sampling and load shedding ([easy posts on Resilience](https://swe.quest/tags/resilience.md?difficulty=easy))

## Keywords

Datadog, Kafka, Flink, watermarks, load-shedding bulletin

## Related posts

- [Ensuring reliable OpenTelemetry ingestion at scale](https://swe.quest/articles/ensuring-reliable-opentelemetry-ingestion-at-scale-ef5f46f7e6587da0.md): ClickHouse · 2026-08-24 · Medium · 12 min read · Observability, Resilience, Data pipelines, Cloud platforms, Kubernetes
  ClickHouse's LogHouse OpenTelemetry pipeline, ingesting 50 million events per second, absorbs database backpressure by failing over to S3 rather than buffering in memory, local WALs or Kafka.
- [How we scaled metrics aggregation by moving durable state into storage](https://swe.quest/articles/how-we-scaled-metrics-aggregation-by-moving-durable-state-into-storage-09bea3fd544962da.md): Datadog Engineering · 2026-11-17 · Medium · 12 min read · Stream processing, Scaling, Observability, Storage engines, Distributed systems
  Datadog's metrics aggregation service, which merges DDSketch distributions to reduce tag dimensions, went through three generations as volume grew roughly 10× each time.
- [How to Reliably Scale Your Data Platform for High Volumes](https://swe.quest/articles/how-to-reliably-scale-your-data-platform-for-high-volumes-d29cb64aded6f294.md): Shopify Engineering · 2020-12-08 · Medium · 9 min read · SRE, Capacity planning, Data pipelines, Scaling, Resilience
  Shopify's Data Platform Engineering team prepared Tier 1 and Tier 2 ingestion and query services for a forecast near-doubling of BFCM 2020 traffic with a five-step reliability process.
- [Partition Finalization in Pinterest’s Next-Generation DB Ingestion Framework](https://swe.quest/articles/partition-finalization-in-pinterest-s-next-generation-db-ingestion-framework-f8587191e2b11efa.md): Pinterest Engineering · 2026-09-25 · Hard · 11 min read · Stream processing, Data pipelines, Event-driven architecture, Time & clocks
  Pinterest's streaming CDC ingestion (Kafka, Flink, Iceberg, Spark) lost the implicit "partition complete" signal that batch loads provided, so it now derives a partition finalization watermark from event time.
- [Scaling down to speed up: How we improved efficiency of live process metrics by 100x](https://swe.quest/articles/scaling-down-to-speed-up-how-we-improved-efficiency-of-live-process-metrics-by-db520ecc99ab0c49.md): Datadog Engineering · 2025-08-12 · Medium · 8 min read · Observability, Scaling, Cost optimization, Queues & messaging, System design
  Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
