Skip to content
System design · Senior · 12 min

Design ingest for a fleet-wide metrics system

Size the write path for 40M samples/s and show how it survives losing a region.

Prompt

Every host in a 2M-machine fleet exports ~200 time series, scraped every 10 s. Engineers query the last 30 days with dashboards and alerts. Design the write path from host to durable storage.

Questions worth clarifying

  • Write path only; query path out of scope
  • Freshness: dashboards ≤ 60 s behind
  • Loss budget: ≤ 0.1% samples during a regional failure
  • 3 regions, hosts evenly spread
  • Cardinality spikes from bad labels must not take down ingest

Inputs you will estimate from

HostsSeries per hostScrape intervalBytes/sample on wireBytes/sample storedRetentionReplicationSamples/s per ingester
Free to try · sign in to save your attemptOpen the workbench with live capacity math
Open in the app