Architectural Breakdown & AnalysisFAANG Aligned
Monitoring systems process millions of time-series data points per second for real-time alerting and historical dashboards.
Architecture Components
- Data Collection (Pull vs Push): Prometheus pulls metrics from
/metricsHTTP endpoints. Datadog agent pushes metrics via UDP/StatsD. - Time-Series DB Engine (TSDB): Stores timestamps, metric names, and labels using delta-of-delta compression.
- Aggregations & Downsampling: Background jobs aggregate raw second-level metrics into 1-minute and 1-hour rollups, moving cold metrics to object storage.
WARNING — High Cardinality Warning
Avoid putting unique IDs (like user_id or order_id) into metric labels. High cardinality explodes TSDB memory usage.
Key Architectural Comparison
| Telemetry Ingestion Model | Communication Direction | Network / Firewall Configuration | Resource Consumption on Worker |
|---|---|---|---|
| Pull Model (Prometheus) | Central server scrapes target /metrics. | Requires open inbound ports on all targets. | Minimal (Worker serves simple text HTTP endpoint). |
| Push Model (Datadog) | Agent pushes metrics to central collector. | Inbound ports closed; only outbound egress needed. | Moderate (Agent runs background batching daemon). |