Design Metrics Collection Service - Datadog - Follow-up questions - Intuition First, Need more How

Here is solutions for Design Metrics Collection Service - Datadog.

Main topic:

  • Ingest Service: for ingest data.

  • Query service: for query the metrics.

  • Alert metrics: for creating alerts

  • Notification Service: for fan-out notifications.

1. Requirements

  1. The platform should be able to ingest metrics (CPU, memory, latency, custom counters) from services
  2. Users should be able to query and visualize metrics on dashboards with filters, aggregations, and time ranges
  3. Users should be able to define alert rules with thresholds over time windows (e.g., “alert if p99 latency > 500ms for 5 minutes”)
  4. Users should receive notifications when alerts fire (email, Slack, PagerDuty)

2. High-level Design

Alert Metrics

July 26, 2026