---
title: "The evolution of SQL-based observability"
description: "ClickHouse's rewritten JSON column type is presented as the key observability advance of the past year."
url: "https://swe.quest/articles/the-evolution-of-sql-based-observability-efbe90d19ed39688"
canonical: "https://clickhouse.com/blog/evolution-of-sql-based-observability-with-clickhouse"
source: "ClickHouse"
published: "2024-11-11"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 22
tags: ["observability","analytics","storage-engines","databases"]
---

# The evolution of SQL-based observability

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-11-11, 22 min read, Deep dive. Original: [https://clickhouse.com/blog/evolution-of-sql-based-observability-with-clickhouse](https://clickhouse.com/blog/evolution-of-sql-based-observability-with-clickhouse)

## Summary

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.

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)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- OpenTelemetry data model ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

ClickHouse, OpenTelemetry, JSON column type, MergeTree, PromQL, Grafana

## Related posts

- [What's new in ClickStack. July '25.](https://swe.quest/articles/what-s-new-in-clickstack-july-25-b30443e4bbdf085a.md): ClickHouse · 2025-07-07 · Medium · 11 min read · Observability, Analytics & OLAP, Schema migrations, Performance engineering
  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.
- [The State of SQL-based Observability](https://swe.quest/articles/the-state-of-sql-based-observability-672099654427a9bd.md): ClickHouse · 2023-12-06 · Easy · 16 min read · Observability, Analytics & OLAP, Databases, Cost optimization
  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.
- [So, is ClickHouse winning the observability wars?](https://swe.quest/articles/so-is-clickhouse-winning-the-observability-wars-3577c2c26e782dd2.md): ClickHouse · 2026-08-27 · Medium · 20 min read · Observability, Analytics & OLAP, Storage engines, Search, Performance engineering
  ClickHouse has become a common storage and query layer for observability, and the main reason is its columnar architecture.
- [ClickHouse and OpenTelemetry](https://swe.quest/articles/clickhouse-and-opentelemetry-84cdeb7807e844a6.md): ClickHouse · 2024-11-07 · Medium · 10 min read · Observability, Analytics & OLAP, Databases, Open source
  ClickHouse now officially supports the OpenTelemetry Collector exporter for ClickHouse, which has reached beta for logs and traces.
- [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.

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)
