PracHub
QuestionsLearningGuidesInterview Prep
|Home/System Design/Citadel

Design a Low-Latency Metrics and Alerting Platform

Last updated: Jul 24, 2026

Quick Overview

Design a multi-tenant metrics and alerting platform for time-series ingestion, dashboards, SLO evaluation, and notifications with critical detection under two seconds. Cover cardinality controls, late data, heartbeat-based liveness, durable alert state, deduplicated delivery, retention, and regional failures.

  • medium
  • Citadel
  • System Design
  • Software Engineer

Design a Low-Latency Metrics and Alerting Platform

Company: Citadel

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

# Design a Low-Latency Metrics and Alerting Platform Design a multi-tenant platform that collects host and application metrics, stores time-series data, serves dashboards and queries, evaluates service-level objectives, and sends alerts. Important alerts should detect failures within two seconds, including the failure of an individual machine worker. ### Constraints & Assumptions - Metrics contain a name, timestamp, numeric value, and bounded label set. - Hosts emit heartbeats in addition to application metrics. - Data can arrive late, out of order, duplicated, or during regional failures. - Recent high-resolution data has a shorter retention period than downsampled historical data. - Alert delivery providers and parts of the monitoring platform can fail. ### Clarifying Questions to Ask - What ingestion rate, active-series cardinality, retention, query volume, and tenant count are expected? - Does the two-second target measure detection, evaluation, or successful notification delivery? - Which metric types and query operations must be supported? - How much late data may revise dashboards or alert evaluations? - What false-positive and false-negative trade-off is acceptable for machine failure detection? ### Hints - Separate ingestion, durable storage, query, rule evaluation, and notification concerns. - Heartbeat absence needs an expected cadence and failure threshold, not just a missing row. - Treat alert state as durable data so evaluator retries do not duplicate notifications. ### What a Strong Answer Covers - Instrumentation, agents, collectors, authentication, batching, validation, deduplication, and backpressure. - Partitioning and indexing of time-series data, cardinality controls, retention, compaction, and downsampling. - Query fan-out, recent-data caches, aggregation, limits, and tenant isolation. - Versioned rule and SLO configuration, incremental evaluation, alert state machines, silences, grouping, and deduplicated delivery. - Heartbeats, lease-style liveness, jitter, maintenance awareness, correlated failures, and false-positive control. - High availability, regional failure behavior, observability of the observer, cost, and a defensible two-second latency budget. ### Follow-up Questions 1. How do you detect a failed worker when the network between collectors and storage is partitioned? 2. How would you prevent one tenant's high-cardinality labels from exhausting the platform? 3. What happens when a late sample changes a previously evaluated alert window? 4. How do you test alert delivery when the metrics platform itself is degraded?

Quick Answer: Design a multi-tenant metrics and alerting platform for time-series ingestion, dashboards, SLO evaluation, and notifications with critical detection under two seconds. Cover cardinality controls, late data, heartbeat-based liveness, durable alert state, deduplicated delivery, retention, and regional failures.

Related Interview Questions

  • Design Inventory Availability and Order Placement - Citadel (medium)
  • Design alerting for application-to-exchange mappings - Citadel (medium)
  • Design a low-latency trading platform - Citadel (hard)
  • Design stock price time-series store and query - Citadel (easy)
|Home/System Design/Citadel

Design a Low-Latency Metrics and Alerting Platform

Citadel logo
Citadel
Jul 12, 2026, 12:00 AM
mediumSoftware EngineerOnsiteSystem Design
10
0

Design a Low-Latency Metrics and Alerting Platform

Design a multi-tenant platform that collects host and application metrics, stores time-series data, serves dashboards and queries, evaluates service-level objectives, and sends alerts. Important alerts should detect failures within two seconds, including the failure of an individual machine worker.

Constraints & Assumptions

  • Metrics contain a name, timestamp, numeric value, and bounded label set.
  • Hosts emit heartbeats in addition to application metrics.
  • Data can arrive late, out of order, duplicated, or during regional failures.
  • Recent high-resolution data has a shorter retention period than downsampled historical data.
  • Alert delivery providers and parts of the monitoring platform can fail.

Clarifying Questions to Ask Guidance

  • What ingestion rate, active-series cardinality, retention, query volume, and tenant count are expected?
  • Does the two-second target measure detection, evaluation, or successful notification delivery?
  • Which metric types and query operations must be supported?
  • How much late data may revise dashboards or alert evaluations?
  • What false-positive and false-negative trade-off is acceptable for machine failure detection?

Hints

  • Separate ingestion, durable storage, query, rule evaluation, and notification concerns.
  • Heartbeat absence needs an expected cadence and failure threshold, not just a missing row.
  • Treat alert state as durable data so evaluator retries do not duplicate notifications.

What a Strong Answer Covers Guidance

  • Instrumentation, agents, collectors, authentication, batching, validation, deduplication, and backpressure.
  • Partitioning and indexing of time-series data, cardinality controls, retention, compaction, and downsampling.
  • Query fan-out, recent-data caches, aggregation, limits, and tenant isolation.
  • Versioned rule and SLO configuration, incremental evaluation, alert state machines, silences, grouping, and deduplicated delivery.
  • Heartbeats, lease-style liveness, jitter, maintenance awareness, correlated failures, and false-positive control.
  • High availability, regional failure behavior, observability of the observer, cost, and a defensible two-second latency budget.

Follow-up Questions Guidance

  1. How do you detect a failed worker when the network between collectors and storage is partitioned?
  2. How would you prevent one tenant's high-cardinality labels from exhausting the platform?
  3. What happens when a late sample changes a previously evaluated alert window?
  4. How do you test alert delivery when the metrics platform itself is degraded?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Citadel•More Software Engineer•Citadel Software Engineer•Citadel System Design•Software Engineer System Design

Your design canvas — auto-saved

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.