Appears in: Telemetry Ingestion Pipeline — this is §2 of the full design, split into its own file so the root stays a table of contents.
2. High-Level Architecture
flowchart TD
subgraph Producers["Data Producers"]
P["[ OTel SDK ] · [ Prometheus ] \n [ Fluent Bit ] · [ eBPF Agent ] \n [ StatsD ]"]
end
subgraph L1["Ingestion Frontier — Layer 1"]
GW1["1️⃣ OTLP Gateway\n(gRPC / HTTP)"]
GW2["2️⃣ RW Gateway\n(prom-rw)"]
GW3["3️⃣ Syslog / HTTP\n(Gateway)"]
AUTH["Auth · Rate-limit · Schema validation"]
end
subgraph L2["Durable Buffer — Layer 2"]
KAFKA["Kafka / Pulsar / Kinesis\nmetrics-raw · logs-raw · traces-raw · per-tenant shards"]
end
subgraph L3["Processing / Enrichment — Layer 3"]
MP["Metric Processor\n· relabeling \n· aggregation \n· cardinality enforcement"]
LP["Log Processor\n· parsing \n· dedup \n· enrichment \n· schema coerce"]
TP["Trace Processor\n· span assembly \n· tail sampling \n· service graph"]
end
MIMIR[("Mimir / Thanos\n(TSDB blocks)")]
LOKI[("Loki\n(Log Store)")]
TEMPO[("Tempo\n(Trace Store)")]
P -->|"OTLP / gRPC"| GW1
P -->|"Prometheus remote-write"| GW2
P -->|"Syslog / HTTP"| GW3
GW1 & GW2 & GW3 --> AUTH --> KAFKA
KAFKA --> MP --> MIMIR
KAFKA --> LP --> LOKI
KAFKA --> TP --> TEMPO
1️⃣ OTLP Gateway
2️⃣ Prometheus Remote Write Gateway
3️⃣ Syslog Gateway
Key insight to state early
“I’m designing for push-based ingestion rather than pull, because at 10M agents, a central scraper creates a fan-out coordination problem. Agents push over OTLP/gRPC. The gateway is stateless and scales horizontally. The buffer (Kafka) decouples ingestion rate from processing rate.”
Local graph
Linked from 2 notes
Q5: Adding Continuous Profiling to an Existing MELT Pipeline
Full principal-level solution: extend an existing metrics + logs + traces pipeline with continuous profiling as a fourth signal, without a full redesign.
Chapter 1 — Telemetry Ingestion Pipeline
Principal/Staff-level design of a high-throughput telemetry ingestion pipeline — requirements, architecture, deep dives, and trade-offs at 10x scale.
Related notes
Chapter 1 — Telemetry Ingestion Pipeline
Principal/Staff-level design of a high-throughput telemetry ingestion pipeline — requirements, architecture, deep dives, and trade-offs at 10x scale.
Q1: 500M Samples/Sec, Zero Drop on Rolling Deploy
Full principal-level solution: design a telemetry ingestion pipeline for 500M metric samples/sec from 100K services globally with a zero-drop guarantee during rolling deployment of the ingestion tier.
Q10: Self-Service Tenant Onboarding With Zero Platform-Team Involvement
Full principal-level solution: design a self-service tenant onboarding API for a telemetry pipeline that protects shared infrastructure from a misbehaving new tenant on day one.
Q8: Counters Resetting to Zero After an OTel SDK Upgrade
Full principal-level solution: diagnose and fix a tenant's dashboards showing counters reset to zero every few minutes after an OTel SDK upgrade, without requiring instrumentation changes.