Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 7 min read Case study mediumAdept

How the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse

The D. E. Shaw group moved per-task resource metrics from its HPC grid, millions of high-cardinality time series keyed by unique task IDs, from an InfluxDB-protocol time-series platform to ClickHouse. In same-hardware benchmarks, a single ClickHouse node ingested about 3.5M samples/s against roughly 480k for a competitor, and queries that timed out elsewhere finished in seconds. Production keeps the InfluxDB line-protocol ingestion path through a custom batching service, backfills history by reading the old platform's files directly from disk, and stores 68 TB compressed on four replicated NVMe servers at about 530k inserts/s, with materialized views for capacity-planning dashboards. Tradeoffs included rewriting Prometheus-style queries in SQL and limited compression on unique-ID fields (up to 5x), while OpenTelemetry traces reach about 12.5x compression.

Related posts

  • ClickHouse vs Prometheus for High Cardinality, Part 2: Cardinality in ClickHouse

    ClickHouse mediumAdept

    ClickHouse handles high-cardinality observability data by storing telemetry as wide events, rows of attributes plus measurements, instead of as independently maintained time series. A new label combination therefore adds a row rather than a new in-memory series object, so cardinality is paid mostly at query time rather than at ingestion. The recommended schema keeps dynamic labels in a sharded Map, materializes frequently filtered labels and metrics into typed columns in the sorting key, and adds inverted text indexes over map keys and values. Sparse primary indexes, granule pruning, per-column codecs and bucketed map serialization (2–49× faster single-key lookups) keep I/O and storage low, though ClickHouse is not a drop-in Prometheus replacement.

  • Scaling our Observability platform beyond 100 Petabytes by embracing wide events and replacing OTel

    ClickHouse mediumAdept

    ClickHouse's internal LogHouse platform grew from 19 PiB to over 100 PB of uncompressed logs (about 500 trillion rows), mostly by replacing the OpenTelemetry pipeline for ClickHouse server telemetry with SysEx. SysEx is a pull-based Go exporter that copies system tables byte-for-byte from customer pods into LogHouse in ClickHouse's Native format. It assigns pods to scrapers with a hash ring and queries a sliding time window trailing real time by about five minutes, so internal buffers flush before rows are read. Schema drift is handled with hashed, versioned tables unified through the Merge engine. The OTel collectors needed 800+ cores for 2M logs/s and still dropped events, while SysEx ships 37M logs/s on about 70 cores with no edge loss. HyperDX now replaces the team's Grafana-based UI.

  • Building Chronicle: How Temporal supercharged their observability with ClickHouse

    ClickHouse easyNovice

    Temporal built Chronicle, an observability system on ClickHouse, to handle high-cardinality, per-tenant telemetry for its multi-tenant Temporal Cloud without runaway costs. Data from 14 regions is consolidated into five hubs with distributed tables and AWS PrivateLink, so queries run where the data lives and egress charges stay low. Logs are sorted by cluster, namespace and timestamp for investigative queries, and materialized views pre-aggregate at write time for fast dashboards. Async inserts with a five-second wait push ingestion to 150K rows/s, write-aggregated queries return in under 200 ms, and the largest table compresses 36.59x.

  • Building an Observability Solution with ClickHouse at Dash0

    ClickHouse hardMaster

    Dash0 stores all OpenTelemetry metrics, logs and spans in ClickHouse, using PostgreSQL only for customer settings, so signals can be joined and correlated in one system. The setup tiers storage with 1-2 days on local disk, then AWS S3 plus a local cache, driven by TTL moves, and keeps metrics for 13 months. Tables are ordered by a ResourceHash before Timestamp for better filtering and compression, with daily partitions bounding time ranges, and the cluster runs as a single shard with multiple replicas. Metric metadata is deduplicated into an AggregatingMergeTree table keyed by MetricHash with FirstSeen/LastSeen tracking, and queries against it must use GROUP BY or FINAL because merges are not guaranteed to have happened.

  • How Mercado Libre rebuilt its observability platform on ClickHouse Cloud with 75x faster trace queries

    ClickHouse mediumAdept

    Mercado Libre moved the storage layer of its OpenTelemetry-based tracing platform, O11y events, to ClickHouse Cloud. Transformation, filtering and aggregation now run inside the database through materialized views instead of on clients at query time. A ReplacingMergeTree lookup table ordered by attribute key, time buckets, value and trace ID, with a Bloom filter skip index, supports two-step high-cardinality queries against an AggregatingMergeTree trace summary. Queries dropped from over five minutes to about four seconds (75x), compression reached 86–89% on trillions of rows, and throughput is 400M spans/min with only 30% of critical apps migrated. Lessons include benchmarking under real load, iterating on primary keys, tuning batch and async inserts, and separating read, write and merge clusters.

The quest for software engineering knowledge.

Look:
Layout: