Design a Time-Series Metrics Store for Azure Monitor

Last updated: November 29, 2026

Quick Overview

Design the storage and query engine for platform metrics (CPU, requests, latency) emitted every minute by tens of millions of Azure resources, supporting dashboards, alert evaluation and 93 days of retention.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the storage and query engine for platform metrics (CPU, requests, latency) emitted every minute by tens of millions of Azure resources, supporting dashboards, alert evaluation and 93 days of retention.

Azure Monitor metrics is a large time-series system, and interviewers ask this to probe write-optimized storage, compression, cardinality limits and pre-aggregation. They check that queries for alerting (recent, many series) and dashboards (long range, few series) are both served well.

What the Interviewer Expects
  • Defines the data model: metric name, dimensions, timestamp, aggregated values
  • Partitions by resource or metric namespace with time-based chunks
  • Uses columnar compression such as delta-of-delta timestamps and XOR floats
  • Pre-aggregates into minute, hour and day rollups
  • Enforces dimension cardinality limits
  • Separates hot recent data from colder historical data
Key Topics to Cover
Time-series data model
Gorilla-style compression
Rollups
Cardinality limits
Hot and cold tiers
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A customer adds a dimension 'requestId'. What happens to the store?
  • How do you answer 'p95 latency across 500 VMs for the last 30 days' fast?
  • How do alert evaluators query every minute without hammering storage?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Ingest: tens of millions of resources x dozens of metrics per minute, so tens of millions of points per second. Each point carries min, max, sum, count for the minute (pre-aggregated by the emitting a...

High-Level Design

Ingestion front ends authenticate the resource, validate, and append to a partitioned log keyed by hash(resourceId). Ingesters consume partitions, build in-memory buffers per series (series ...


Submit Your Answer
Markdown supported