LeetDesign
← All problems
Hard

Design a Metrics Ingestion Store

Store a continuous stream of metric points from fleet agents and answer recent-range queries from dashboards and alert rules.

Design the ingestion store behind a monitoring product. Fleet agents post batches of metric points continuously, and dashboards and alert rules query recent series back out.

Points are written once and read as ranges: they land in time partitions, age out of retention, and the same recent ranges are requested over and over by the dashboards watching them.