---
title: "ClickHouse and OpenTelemetry"
description: "ClickHouse now officially supports the OpenTelemetry Collector exporter for ClickHouse, which has reached beta for logs and traces."
url: "https://swe.quest/articles/clickhouse-and-opentelemetry-84cdeb7807e844a6"
canonical: "https://clickhouse.com/blog/clickhouse-and-open-telemtry"
source: "ClickHouse"
published: "2024-11-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["observability","analytics","databases","open-source"]
---

# ClickHouse and OpenTelemetry

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-11-07, 10 min read, Case study. Original: [https://clickhouse.com/blog/clickhouse-and-open-telemtry](https://clickhouse.com/blog/clickhouse-and-open-telemtry)

## Summary

ClickHouse now officially supports the OpenTelemetry Collector exporter for ClickHouse, which has reached beta for logs and traces. The exporter ships a "one size fits most" default schema. For production, ClickHouse recommends disabling automatic table creation, because concurrent exporters race to create tables, and defining your own tables or materialized views keyed to your query patterns. The LogHouse schema behind ClickHouse's 43 PB internal logging platform serves as the worked example. It orders by (PodName, Timestamp), uses LowCardinality for string columns under about 10k distinct values, applies ZSTD(1) because data lives on S3, and puts Bloom-filter indexes on map keys and values, which are not yet tuned.

Written by swe.quest, not by the author.

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

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- ClickHouse MergeTree basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- OpenTelemetry Collector ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- SQL table design ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

ClickHouse, OpenTelemetry, OTel Collector, LogHouse, SharedMergeTree, Bloom filter, ZSTD

## Related posts

- [Building an Observability Solution with ClickHouse - Part 2 - Traces](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-part-2-traces-1a2db2608573ffa7.md): ClickHouse · 2023-03-29 · Medium · 29 min read · Observability, Analytics & OLAP, Microservices
  Trace data from OpenTelemetry-instrumented services can be stored and queried in ClickHouse, treating spans as rows in a single analytics table and visualizing them in Grafana.
- [Building an Observability Solution with ClickHouse - Part 1 - Logs](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-part-1-logs-7367c3ac34797550.md): ClickHouse · 2023-01-11 · Medium · 24 min read · Observability, Analytics & OLAP, Kubernetes, SQL
  ClickHouse can serve as the storage backend for Kubernetes log collection using any of three agents: the OpenTelemetry Collector, Vector and Fluent Bit.
- [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.
- [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.
- [Scaling our Observability platform beyond 100 Petabytes by embracing wide events and replacing OTel](https://swe.quest/articles/scaling-our-observability-platform-beyond-100-petabytes-by-embracing-wide-c75d29b3bcaf1192.md): ClickHouse · 2025-06-19 · Medium · 26 min read · Observability, Scaling, Cost optimization, Analytics & OLAP, Go
  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.

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)
