Skip to content

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

ClickHouse 9 min read How-to mediumAdept

Migrate Datadog telemetry with the OpenTelemetry Collector

The OpenTelemetry Collector's Datadog receiver lets existing Datadog agents and SDKs send logs, traces and metrics to a Collector. The Collector translates them into the OpenTelemetry data model, and they can then be exported to any backend or dual-written alongside Datadog for side-by-side evaluation. ClickHouse contributed fixes upstream: proper log timestamps and severity mapping, promotion of resource attributes, reconstruction of 128-bit trace IDs for log-trace correlation, in-Collector JSON log decoding, and Zstandard support for Datadog Agent 7.59+. A worked example points a Datadog agent's datadog.yaml at ClickStack's Collector on port 8126. The receiver is still alpha: it is recommended for evaluating logs and traces, while metrics support covers only the v1/v2 intake endpoints and needs more testing.

Related posts

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

  • ClickHouse and OpenTelemetry

    ClickHouse mediumAdept

    ClickHouse now officially supports the OpenTelemetry Collector exporter for ClickHouse, which has reached beta for logs and traces. The exporter ships a "one size fits most" default schema. For production, ClickHouse recommends disabling automatic table creation, because concurrent exporters race to create tables, and defining your own tables or materialized views keyed to your query patterns. The LogHouse schema behind ClickHouse's 43 PB internal logging platform serves as the worked example. It orders by (PodName, Timestamp), uses LowCardinality for string columns under about 10k distinct values, applies ZSTD(1) because data lives on S3, and puts Bloom-filter indexes on map keys and values, which are not yet tuned.

  • What's new in ClickStack. September '25.

    ClickHouse mediumAdept

    ClickStack's September 2025 release adds JSON dashboard import/export in HyperDX, custom aggregations through any ClickHouse aggregate function (e.g. stddevPop), and user-supplied OTel Collector YAML. That YAML is merged with the OpAMP-managed base config by mounting it at /etc/otelcol-contrib/custom.config.yaml, for example to add hostmetrics and filelog receivers. Search queries are now split into time-window chunks executed newest-first, with remaining chunks canceled once enough results are found. A Prometheus-style delta() for gauge metrics extrapolates each window's first-to-last difference to the full bucket duration before aggregating across series.

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

  • Faster OpenTelemetry migrations to ClickStack with Bindplane

    ClickHouse mediumAdept

    Bindplane lets teams migrate OpenTelemetry pipelines to ClickStack incrementally instead of doing a rip-and-replace. The first step adds ClickStack as a second destination for dual-write evaluation, rolled out progressively across the collector fleet. Workloads then move service by service by adding Filter by Condition exclusions on the legacy destination. A routing connector can cut parallel-run costs by sending WARN and above (severity_number >= 13) to the legacy backend and everything else to ClickStack. Blueprints that structure and enrich logs before ingest improve ClickHouse compression, which is claimed to reach up to 170x.

The quest for software engineering knowledge.

Look:
Layout: