The evolution of SQL-based observability
ClickHouse's rewritten JSON column type is presented as the key observability advance of the past year. It replaces the Map(String, String) columns used for OpenTelemetry attributes, which lose type precision, require linear scans of every key, hide available keys and cannot nest. The new type stores each unique path and type pair as its own dense sub-column using offsets, so queries read only the paths they need. Paths beyond a limit overflow into a shared data column. The post revisits the checklist for when SQL-based observability fits, shows how OTel log schemas would adopt JSON columns, and previews experimental work toward metrics support.
Related posts
- What's new in ClickStack. July '25.
ClickHouse mediumAdept
ClickStack, ClickHouse's open-source observability stack, adds beta support for ClickHouse's native JSON column type for OpenTelemetry attribute columns in place of Map. Map stored every value as a string, forced full-column scans to read one key and stringified nested data. JSON stores each path as a typed sub-column, which removes the need for bloom filters on map keys and values. On a ~90M-row log dataset, a per-pod aggregation ran 9x faster and read over 10x less data. Support needed changes to clickhouse-go, the OTel exporter (behind a feature gate) and HyperDX's UI, and the new schema is incompatible with the Map schema, so existing data must be migrated via INSERT INTO ... SELECT or kept in a separate source.
- 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.
- 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.
- ClickHouse and OpenTelemetry
ClickHouse mediumAdept
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.
- Building an Observability Solution with ClickHouse at Dash0
ClickHouse hardMaster
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. The setup tiers storage with 1-2 days on local disk, then AWS S3 plus a local cache, driven by TTL moves, and keeps metrics for 13 months. Tables are ordered by a ResourceHash before Timestamp for better filtering and compression, with daily partitions bounding time ranges, and the cluster runs as a single shard with multiple replicas. Metric metadata is deduplicated into an AggregatingMergeTree table keyed by MetricHash with FirstSeen/LastSeen tracking, and queries against it must use GROUP BY or FINAL because merges are not guaranteed to have happened.