The State of SQL-based Observability
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.
Related posts
- 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.
- 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.
- How we used ClickHouse to store OpenTelemetry Traces and up our Observability Game
ClickHouse mediumAdept
Resmo stores over 300 million unsampled OpenTelemetry spans per day in a self-hosted ClickHouse node, after dropping S3/Parquet/Athena because of its 2-3 second query startup and delayed data. A single c7g.xlarge with 400 GB EBS holds more than 4 billion spans at about 92% compression (275 GiB vs 3.4 TiB). LowCardinality materialized columns for tenant and user IDs speed up common queries, and joins to Aurora Postgres add account names. The post shares SQL for latency percentiles, SpanAttributes key analysis, spans-per-trace histograms and exception-message search with hasToken.
- 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.
- The evolution of SQL-based observability
ClickHouse mediumAdept
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.