LinkedIn's ClickHouse Leap: Tracing to Metrics

Alps Wang

Alps Wang

Oct 1, 2026 · 1 views

Observability at LinkedIn's Scale

LinkedIn's successful adoption and extension of ClickHouse for both distributed tracing and metric metadata discovery and analytics is a compelling case study for organizations grappling with massive data volumes in observability. The article highlights the critical need for high-performance, scalable databases in modern distributed systems, demonstrating how ClickHouse can effectively handle trillions of data points per day for tracing and billions of metrics for discovery. The migration from legacy systems to ClickHouse resulted in significant improvements in memory usage (one-fifth) and compute (two-thirds), alongside enhanced query capabilities and the potential to double metric volume. This strategic shift underscores the importance of choosing the right database technology for specific, demanding workloads, and the benefits of leveraging existing expertise to expand its application.

However, while the article celebrates the success, it implicitly points to the inherent complexity of managing such large-scale data platforms. The initial journey with distributed tracing itself involved significant engineering effort, including schema design, partitioning, Bloom filter optimization, and a robust red-black deployment strategy across data centers. The subsequent migration of metric metadata, while transparent to end-users due to a gateway abstraction, still required careful consideration of data ingestion pipelines (change-capture), table structures (ReplacingMergeTree), and projection creation for aggregations. The reliance on KQL as a preferred query language also suggests a need for integration with existing tooling and developer workflows, which can be a hurdle for broader adoption. The article also mentions that the metadata index is on a single shard, which, while currently manageable and providing headroom, might become a future scaling bottleneck if query complexity or data volume grows exponentially beyond projections.

The implications of this adoption are far-reaching. For other tech companies facing similar data scale challenges in their observability stacks, this provides a blueprint. It validates ClickHouse not just as a powerful OLAP database for time-series data but also as a versatile solution for complex metadata indexing and querying. The ability to consolidate disparate legacy systems into a single, performant ClickHouse cluster offers tangible benefits in operational efficiency and cost reduction. Furthermore, the emphasis on leveraging existing expertise in ClickHouse, gained from the tracing project, to onboard the metric metadata project demonstrates a smart strategy for technology adoption and internal knowledge dissemination. This case study should encourage engineers and architects to re-evaluate their current observability data architectures and consider ClickHouse as a viable, high-impact alternative, especially when dealing with exabytes of data or trillions of events.

Key Points

  • LinkedIn extended ClickHouse from distributed tracing to metric metadata discovery and analytics.
  • The tracing system handles ~0.8 trillion spans and 200 TB of uncompressed data per day.
  • The metric metadata index serves 150k+ queries/minute at 68ms average latency across 13B+ metrics.
  • Migration cut memory use to ~1/5 and compute to ~2/3 of the legacy stack.
  • ClickHouse's flexibility and performance were key to consolidating multiple legacy systems.

Article Image


📖 Source: How LinkedIn extended ClickHouse from distributed tracing to metric discovery and analytics

Related Articles

Comments (0)

No comments yet. Be the first to comment!