Skip to content
SD-10 · DISTRIBUTED METRICS AGGREGATION · INTERACTIVE

Break it.
Then fix it.

Turn up the fleet, watch what melts, and add the parts a real metrics pipeline needs. Every switch is a decision you would defend in an interview.

CHALLENGEIngest 20M points/s with nothing dropped, and keep dashboard queries under 1 s at p99.
StatusDOWNAt 5M points per second
Dashboard p995,000+ msTarget under 1,000 ms
Dropped points0%Nothing lost
Failed queries20%Panels time out
Monthly cost$118,950192 TSDB nodes, 13 gateways
Host agentsLIVE
25M active series
5.0M points/s
Dashboards + alertsLIVE
Engineers and alert rules
5.0K queries/s
Ingest gateway × 13HOT
No series limits
5.0M / 5.2M points/s
Ingest logOK
Partitioned by series hash
5.0M / 60M points/s
TSDB · 64 shards × 3OK
50M / 160M series in memory
5.0M / 32M points/s
Queriers × 40DOWN
Reads raw 10 s points
30K / 24K query units/s
Object storageOK
Raw 2-hour blocks
blocks older than 2 h
Long-range panels read every raw point. A 30-day panel reads 259,200 raw points per series at 10 s resolution. Keep 1-minute and 1-hour rollups and pick the coarsest one the panel can show: 6× less to read.
1.5 BPer stored pointDelta-of-delta timestamps and XOR-ed values shrink a 16-byte point about 10×.
6×Less to readA 1-minute rollup replaces six 10-second points for any range longer than a day.
100MActive series500,000 hosts × 200 series each. Series, not points, decide memory.
2 hKept in memoryThe rest lives as compressed blocks in object storage.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.