← InfraDraft

Data & Analytics

Design a Real-time Metrics Aggregation System (Datadog clone)

A high-cardinality time-series platform ingesting millions of metric points per second, rolling them up in real time, and serving low-latency dashboard queries.

Open and Simulate this Architecture in InfraDraft

Core Architectural Components

Metrics/Logs Collection Agent

Runs on every host or service, batching and forwarding metric points.

Stream Aggregation Layer

Computes rollups — sum, average, percentiles — before long-term storage.

Time-Series Database

Stores metrics with tiered downsampling for cost-efficient long retention.

Query Engine

Serves dashboard and alerting reads with sub-second latency.

Alerting & Threshold Evaluation Service

Continuously evaluates rules against fresh data and fires notifications.

Tag/Label Indexing Service

Handles the high-cardinality metadata that makes ad-hoc filtering possible.

Dashboard Rendering Service

Turns query results into the visual panels users configure.