Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 7 min read Opinion easyNovice

Is it over for metrics?

Metrics are pre-aggregated, low-cardinality summaries that remain useful for inherently aggregate signals like CPU and memory and for stable alert thresholds, but they discard the high-cardinality dimensions (pod ID, request ID, trace ID) needed to debug specific failures and are hard to correlate with logs and traces. As columnar stores like ClickHouse make incremental rollups over structured wide events cheap, a metric becomes effectively a cached query: you keep raw events at full fidelity and derive aggregates as a performance optimization. That moves curation later, letting humans and LLM agents decide what to aggregate after exploring real data, much like the ETL-to-ELT shift.

Assumes: Prometheus metricslogs and tracesmetric cardinality

Related posts

  • 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.

  • How Sierra uses ClickHouse to bridge observability and analytics

    ClickHouse easyNovice

    Sierra, which builds AI customer-service agents with outcome-based pricing, stores every voice and chat interaction as a structured event in a single ClickHouse table and serves both observability and product analytics from it. Materialized views pre-aggregate key metrics such as customer API errors minute by minute, and Prometheus scrapes ClickHouse's query endpoint in Prometheus format to evaluate and deliver alerts. Columnar storage and pre-aggregation let the team keep high-cardinality fields instead of dropping them, and the next step is self-service alerting on business metrics from the analytics dashboards.

  • 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.

  • Whats new in ClickStack - June + July

    ClickHouse mediumAdept

    ClickStack's June–July update centers on traces: per-service colors in the waterfall, fixed-pixel minimum span widths, a minimap for navigating long traces, and display of OpenTelemetry span links. Metrics gain an experimental proxy to external Prometheus-compatible endpoints for hybrid migration to the ClickHouse TimeSeries Engine, plus quantile support for exponential histograms via scale normalization, offset alignment and log-linear interpolation matching Prometheus. Filter values and autocomplete now try ClickHouse text indexes via mergeTreeTextIndex() (26.3+) before metadata rollups and table scans. Other additions include cascading dashboard filters, consecutive-window alerts with a PENDING state, categorical bar charts, event-pattern tiles, kiosk mode, and expanded External API v2 CRUD.

  • ClickHouse vs Prometheus for High Cardinality, Part 2: Cardinality in ClickHouse

    ClickHouse mediumAdept

    ClickHouse handles high-cardinality observability data by storing telemetry as wide events, rows of attributes plus measurements, instead of as independently maintained time series. A new label combination therefore adds a row rather than a new in-memory series object, so cardinality is paid mostly at query time rather than at ingestion. The recommended schema keeps dynamic labels in a sharded Map, materializes frequently filtered labels and metrics into typed columns in the sorting key, and adds inverted text indexes over map keys and values. Sparse primary indexes, granule pruning, per-column codecs and bucketed map serialization (2–49× faster single-key lookups) keep I/O and storage low, though ClickHouse is not a drop-in Prometheus replacement.

The quest for software engineering knowledge.

Look:
Layout: