---
title: "How LinkedIn extended ClickHouse from distributed tracing to metric discovery and analytics"
description: "LinkedIn's observability team consolidated a legacy metric metadata system (a custom in-memory search index, a custom KV store and Elasticsearch behind one gateway) onto a single-shard ClickHouse index."
url: "https://swe.quest/articles/how-linkedin-extended-clickhouse-from-distributed-tracing-to-metric-discovery-0664bf513067bd8d"
canonical: "https://clickhouse.com/blog/linkedin-observability-at-scale"
source: "ClickHouse"
published: "2026-10-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["analytics","observability","databases","scalability"]
---

# How LinkedIn extended ClickHouse from distributed tracing to metric discovery and analytics

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-10-01, 8 min read, Case study. Original: [https://clickhouse.com/blog/linkedin-observability-at-scale](https://clickhouse.com/blog/linkedin-observability-at-scale)

## Summary

LinkedIn's observability team consolidated a legacy metric metadata system (a custom in-memory search index, a custom KV store and Elasticsearch behind one gateway) onto a single-shard ClickHouse index. The move built on an earlier ClickHouse tracing deployment that ingests ~0.8 trillion spans/day across three data centers using 22-shard clusters, a red-black read/write setup, and tuned sort order, partitioning and Bloom filters. The metadata index uses a replicated ReplacingMergeTree to deduplicate at-least-once change-capture data, daily table rebuilds swapped via alias, projections for heavy aggregations, and per-dimension columns replacing regex over RRD strings. It serves 150k+ queries/minute at 68ms average across 13B+ metrics, with roughly one-fifth the memory and two-thirds the compute of the old stack and headroom to double volume.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)

## Prerequisites

- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- distributed tracing basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- change data capture

## Keywords

ClickHouse, LinkedIn, ReplacingMergeTree, OpenTelemetry, RRDtool, Elasticsearch, Vitess

## Related posts

- [How Mercado Libre rebuilt its observability platform on ClickHouse Cloud with 75x faster trace queries](https://swe.quest/articles/how-mercado-libre-rebuilt-its-observability-platform-on-clickhouse-cloud-with-a3245c05609a41cc.md): ClickHouse · 2026-08-04 · Medium · 8 min read · Observability, Analytics & OLAP, Scaling, Performance engineering
  Mercado Libre moved the storage layer of its OpenTelemetry-based tracing platform, O11y events, to ClickHouse Cloud.
- [Building an Observability Solution with ClickHouse at Dash0](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-at-dash0-f950ba66eb3161c6.md): ClickHouse · 2025-04-07 · Hard · 18 min read · Analytics & OLAP, Observability, Storage engines, Databases, Cost optimization
  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.
- [How the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse](https://swe.quest/articles/how-the-d-e-shaw-group-powers-high-cardinality-observability-at-scale-with-b74a9887c2072ab0.md): ClickHouse · 2026-05-15 · Medium · 7 min read · Observability, Analytics & OLAP, Scaling, Capacity planning
  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.
- [How we made ClickStack 5x faster for ClickHouse observability](https://swe.quest/articles/how-we-made-clickstack-5x-faster-for-clickhouse-observability-ed934241e77977aa.md): ClickHouse · 2026-07-02 · Hard · 22 min read · Observability, Analytics & OLAP, Performance engineering, Query engines, Storage engines
  ClickStack's OpenTelemetry logs schema, inherited from the ClickHouse exporter for the OTel Collector, was reworked through a benchmark-driven process.
- [How SolarWinds uses ClickHouse BYOC for real-time observability at scale](https://swe.quest/articles/how-solarwinds-uses-clickhouse-byoc-for-real-time-observability-at-scale-39448c307e0eeb75.md): ClickHouse · 2025-03-11 · Medium · 5 min read · Analytics & OLAP, Performance engineering, Observability, Cloud platforms
  SolarWinds ingests about 3 million telemetry messages per second, roughly 550 MB/s with 1 GB bursts, into ClickHouse ReplacingMergeTree tables.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
