No. 10 · Observability
Design a metrics aggregation and query system
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further reading
At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.
- Distributed Logging & Metrics Framework | Systems Design Interview Questions With Ex-Google SWE
End to end design of a logging and metrics pipeline: Kafka ingestion, Flink windowed aggregation, time-series storage for metrics and Parquet/columnar files for analytics. Expect crude jokes; light on retention tiers and cardinality limits.
Link checked 2026-12-06
- Ad Click Aggregator
A neighboring problem that teaches the core moves here: stream aggregation into minute buckets, idempotent counting, and reconciling the streaming path against a batch path. It is about ad clicks, so map the ideas onto metrics yourself.
Link checked 2026-12-06
- Gorilla: A Fast, Scalable, In-Memory Time Series Database
Primary source for why recent metrics live in memory and how delta-of-delta timestamps plus XOR value encoding shrink each point to a couple of bytes. Storage engine only; says little about the aggregation pipeline in front of it.
Link checked 2026-12-06
- Monarch: Google's Planet-Scale In-Memory Time Series Database
How Google shards a global metrics store by target, keeps recent data in memory per zone, and pushes query aggregation down toward the leaves. Dense and long; read the architecture and query sections first.
Link checked 2026-12-06
- M3: Uber's Open Source, Large-scale Metrics Platform for Prometheus
A production story of outgrowing a single metrics store: a dedicated aggregation tier, downsampling, and quorum writes to three replicas at hundreds of millions of points per second. Read for scale numbers and the aggregator role, not for interview structure.
Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)
Report a bad or misleading link
Reference audit: 2 of 4 links from the audited catalog kept
- youtube.com/watch?v=_KoiMoZZ3C8 Older video by the same creator on the same topic; superseded by the newer episode we keep.
- leetcode.com/discuss/interview-question/system-design/622704/Design-a- Prompt-only post that says "a FAANG company"; no readable answers and not evidence for eBay.
We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.
COMPANY EVIDENCE · NOT A FREQUENCY CLAIM
Where it has been reported
Candidate reports
- Candidate report Datadog
Catalog tags (unverified)
GoogleMeta (Facebook)AmazoneBayAtlassian
Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.
KEEP GOING