---
title: "The State of SQL-based Observability"
description: "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."
url: "https://swe.quest/articles/the-state-of-sql-based-observability-672099654427a9bd"
canonical: "https://clickhouse.com/blog/the-state-of-sql-based-observability"
source: "ClickHouse"
published: "2023-12-06"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 16
tags: ["observability","analytics","databases","cost-optimization"]
---

# The State of SQL-based Observability

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-12-06, 16 min read, Opinion. Original: [https://clickhouse.com/blog/the-state-of-sql-based-observability](https://clickhouse.com/blog/the-state-of-sql-based-observability)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- OLAP vs OLTP ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- logs, metrics and traces ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

ClickHouse, OpenTelemetry, Grafana, Elasticsearch, S3, Twitter

## Related posts

- [Breaking free from rising observability costs with open, cost-efficient architectures](https://swe.quest/articles/breaking-free-from-rising-observability-costs-with-open-cost-efficient-61de55dabc4b7b6a.md): ClickHouse · 2025-09-18 · Easy · 11 min read · Observability, Analytics & OLAP, Cost optimization
  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.
- [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.
- [How we used ClickHouse to store OpenTelemetry Traces and up our Observability Game](https://swe.quest/articles/how-we-used-clickhouse-to-store-opentelemetry-traces-and-up-our-observability-b78dc8bc485a8f13.md): ClickHouse · 2023-04-14 · Medium · 13 min read · Observability, Analytics & OLAP, SQL, Cost optimization
  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.
- [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.
- [The evolution of SQL-based observability](https://swe.quest/articles/the-evolution-of-sql-based-observability-efbe90d19ed39688.md): ClickHouse · 2024-11-11 · Medium · 22 min read · Observability, Analytics & OLAP, Storage engines, Databases
  ClickHouse's rewritten JSON column type is presented as the key observability advance of the past year.

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)
