Skip to content

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

ClickHouse 6 min read Case study easyNovice

How Sierra uses ClickHouse to bridge observability and analytics

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.

Assumes: SQL basicsPrometheus alerting

Related posts

  • Goodbye limitations, hello data: How Qonto is rethinking observability with ClickHouse Cloud

    ClickHouse easyNovice

    Qonto, a European digital bank, moved trace storage from Grafana Tempo to ClickHouse Cloud, extending query windows from 2-3 hours to two weeks without sampling and adopting a wide-events model instead of the logs/metrics/traces pillars. High-cardinality span and resource attributes compress from 231 TB to 376 GB, saving an estimated $70K a year in S3 costs, so engineers are now encouraged to add attributes freely. Telemetry flows through OpenTelemetry collectors over AWS PrivateLink into ClickHouse, with Grafana for dashboards. An AI incident companion built on the ClickHouse MCP server, behind a roughly 30-line read-only Python layer, lets non-experts investigate incidents and scope affected customers in plain English.

  • 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 the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse

    ClickHouse mediumAdept

    The D. E. Shaw group moved per-task resource metrics from its HPC grid, millions of high-cardinality time series keyed by unique task IDs, from an InfluxDB-protocol time-series platform to ClickHouse. In same-hardware benchmarks, a single ClickHouse node ingested about 3.5M samples/s against roughly 480k for a competitor, and queries that timed out elsewhere finished in seconds. Production keeps the InfluxDB line-protocol ingestion path through a custom batching service, backfills history by reading the old platform's files directly from disk, and stores 68 TB compressed on four replicated NVMe servers at about 530k inserts/s, with materialized views for capacity-planning dashboards. Tradeoffs included rewriting Prometheus-style queries in SQL and limited compression on unique-ID fields (up to 5x), while OpenTelemetry traces reach about 12.5x compression.

  • What is ClickHouse Security? A technical overview of the agentic SIEM built on ClickHouse

    ClickHouse mediumAdept

    ClickHouse Security is an agentic SIEM, built from RunReveal technology and now in private preview, that stores security logs in a customer's ClickHouse Cloud service. It ingests from 120+ cloud, identity and SaaS sources via webhook, API polling with watermarks, or object storage. Built-in pipelines filter, enrich and normalize the logs to an OCSF-like schema while keeping the raw log. Detections run as scheduled ClickHouse SQL or streaming Sigma rules managed as code through a CLI and GitHub Action, and results land in queryable signals and alerts tables. Investigations collect timeline artifacts, and AI agents triage alerts, tune detections and answer plain-language queries by writing SQL, using bring-your-own LLM keys plus an MCP server, API and Slack bot.

  • Building an Observability Solution with ClickHouse - Part 2 - Traces

    ClickHouse mediumAdept

    Trace data from OpenTelemetry-instrumented services can be stored and queried in ClickHouse, treating spans as rows in a single analytics table and visualizing them in Grafana. The walkthrough uses a ClickHouse fork of the OpenTelemetry Demo, configuring the OTEL Collector's contrib ClickHouse exporter with batching (5s or 100k spans), retries, TTL-based retention and secure endpoints, deployable via Docker Compose or Helm. Practical caveats include the exporter's hard-coded schema (pre-create tables to control types and codecs), its alpha status, and the need to pre-create non-default databases, followed by tips on schema optimization for the otel_traces table.

The quest for software engineering knowledge.

Look:
Layout: