So, is ClickHouse winning the observability wars?
ClickHouse has become a common storage and query layer for observability, and the main reason is its columnar architecture. Data sorted by an ordering key compresses well (users report 10–50x), queries read only the columns they need, sparse primary and skip indexes prune granules, and execution is vectorized and SIMD-friendly and runs in parallel across shards. The newer inverted-index full-text search cut multi-term log searches in one customer report from 30–45s to about 400ms. High-cardinality fields cost little in a columnar store compared with Prometheus's per-series model, though grouping by millions of values still costs memory. The engine is only the foundation; collection, schema, correlation and workflows still have to be built, which is where ClickStack comes in.
Related posts
- The State of SQL-based Observability
ClickHouse easyNovice
Observability is increasingly treated as a SQL analytics problem, with OLAP column stores like ClickHouse replacing the NoSQL backends (Cassandra, Elasticsearch, Splunk) that dominated after Twitter's 2013 observability stack. OpenTelemetry standardizes collection, ClickHouse handles storage, and Grafana handles visualization and alerting. ClickHouse's case rests on columnar compression (around 14x on logs), S3-backed separation of storage and compute, materialized views for structuring logs at insert time, and approximate aggregate functions. One cited experiment handled 14TiB of logs for about $300 a month, with the tradeoff that object storage gives up some query speed for simpler operations.
- Breaking free from rising observability costs with open, cost-efficient architectures
ClickHouse easyNovice
Observability costs balloon at scale because of ingest- and per-host pricing (Splunk, Datadog), while cheaper pillar-specific stores like Prometheus, Loki and Tempo fragment data into silos that block high-cardinality, exploratory analysis. The proposed fix is to treat observability as an analytics problem: an OpenTelemetry-native but not OTel-exclusive pipeline feeding a columnar database, which brings compression, fast high-cardinality aggregations, object-storage retention, flexible JSON schemas and SQL. ClickHouse is argued to be the best fit because of sparse primary indices, skip indices, full-text search, parallel execution and separation of compute from storage. ClickStack is pitched as the open-source UI layer on top, so teams don't have to build a custom interface or write raw SQL in Grafana.
- How we made ClickStack 5x faster for ClickHouse observability
ClickHouse hardMaster
ClickStack's OpenTelemetry logs schema, inherited from the ClickHouse exporter for the OTel Collector, was reworked through a benchmark-driven process. The changes combined time-bucketed primary key redesign, text indexes, query rewrites, materialized views and newer ClickHouse features, cutting representative observability query latency by more than 5×. Every schema iteration was validated with the ClickCannon tool and ephemeral ClickHouse Cloud instances at 640 MiB/s ingest on three 24-core replicas. Each change was judged against ingestion throughput, CPU, memory, part counts and the full query workload, so a gain on one query pattern could not hide regressions elsewhere.
- How ClickStack makes ClickHouse faster for observability
ClickHouse mediumAdept
ClickStack speeds up ClickHouse for observability by generating and rewriting queries to fit how the engine stores, prunes and processes data, instead of passing raw SQL through. Search pages backwards through progressively wider time windows using optimize_read_in_order, and charts split the time range into bucket-aligned chunks that run in parallel. Filters on map attributes are redirected to materialized columns, and full-text searches are rewritten to index-aware functions such as hasAllTokens, which cut one example from 0.7s to 0.03s. Queries are also routed automatically to incremental materialized views chosen by an EXPLAIN ESTIMATE cost model, giving roughly 30x faster dashboards with 28x less memory.
- How the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse
ClickHouse mediumAdept
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.