How ClickStack makes ClickHouse faster for observability
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.
Related posts
- ClickStack: A (half) year in review
ClickHouse easyNovice
ClickStack, the ClickHouse-based observability stack built on HyperDX and OpenTelemetry, shipped a run of features between its May launch and December. These include native JSON attribute storage, a ClickHouse Cloud-hosted UI, dashboard import/export and custom collector configs, and time-window chunked search that fetches recent data first and stops early. Later months added threshold alerting on isolated compute pools, configurable Event Deltas, and Service Maps in beta. December's integrated materialized views let the query layer use EXPLAIN ESTIMATE to pick whichever registered incremental view scans the fewest granules, accelerating searches, charts and dashboards automatically.
- 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.
- What's new in ClickStack - April 2026
ClickHouse mediumAdept
ClickStack's April 2026 release adds alerts driven by arbitrary ClickHouse SQL, so rolling baselines and standard-deviation anomaly checks can be written with window functions and fire when the query returns 1. The default otel_logs schema was redesigned around ClickHouse full-text indexes on attribute map keys/values and lower(Body), with a five-minute bucketed ordering key, improving sample query performance by over 70% at comparable insert cost; versions before 26.2 fall back to bloom_filter indexes. An opt-in companion column flattens attribute maps into key=value arrays so map lookups are rewritten to indexed has() predicates, running 1.4–10x faster. Autocomplete now reads from 15-minute materialized-view rollups instead of scanning live tables, and heatmaps become a general chart type.
- What's new in ClickStack. December '25.
ClickHouse mediumAdept
ClickStack's HyperDX UI can now use ClickHouse Incremental Materialized Views registered against a source to accelerate charts, searches, histograms and dashboards, even when filters are applied. At query time it runs EXPLAIN ESTIMATE against the base table and each eligible view and picks the one that scans the fewest granules. A view only qualifies if it contains every dimension and metric the chart needs. A worked example with two AggregatingMergeTree views over OpenTelemetry traces shows the smaller view being chosen until a SpanName filter or p99 metric forces a switch to the larger one. The feature is in Beta, views are re-evaluated on every query with no caching, and keeping fewer than 10 views per source is recommended.
- So, is ClickHouse winning the observability wars?
ClickHouse mediumAdept
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.