Skip to content

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

ClickHouse 9 min read How-to mediumAdept

Faster root cause for slow traces with ClickStack Event Deltas

ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers. In the OpenTelemetry demo this pinpoints Visa card type as correlated with slow payment spans. It works best on a single service, with a clean separation between fast and slow spans and enough samples in both groups. A recent update allows custom y-axis expressions, such as casting db.response_time_ms to UInt64, and aggregate color-intensity metrics, which isolated slow getPackageRanking queries in ClickPy.

Related posts

  • What's new in ClickStack - March 2026

    ClickHouse mediumAdept

    ClickStack's March 2026 update reworks Event Deltas for root-cause analysis. Attribute distributions now show without a selection, attributes are ranked by proportional rather than raw-count deltas so unequal group sizes don't skew results, and heatmap sampling uses ORDER BY cityHash64(SpanId) instead of rand() so it is repeatable. Raw SQL charts now cover all visualisation types, with Grafana-style macros ($__timeFilter, $__timeInterval, $__filters, $__sourceTable) that inherit dashboard time ranges and filters and survive import/export. Sample-aware aggregations driven by a per-span sampleRateExpression rewrite count, avg, sum and percentiles into weighted forms such as quantileTDigestWeighted. The release also adds AI Notebooks in private preview, dashboard listing pages and a template gallery.

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

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

    ClickHouse mediumAdept

    ClickStack's October 2025 release brings alerting to ClickHouse Cloud, with Slack, PagerDuty and webhook integrations and both search-based and chart-based alerts. It also adds one-click dashboard filters, configurable Event Deltas that can plot any field such as database response time, sampled filter percentages, multiline SQL search, and configurable Kubernetes dashboard sources. On performance, chunked progressive chart loading with cached query chunks cut time-to-first-data by up to 95% and memory per query by 18-80%. Timestamp filtering now also filters on toStartOfDay(Timestamp) so the primary index is fully used, reducing latency by about 25%.

  • Using Event Patterns in ClickStack to accelerate observability analysis

    ClickHouse mediumAdept

    ClickStack clusters logs and traces into event patterns at query time using the Drain3 template-mining algorithm, which runs in the browser via Pyodide (Python compiled to WebAssembly). Clustering at ingest was rejected because the overhead is too high at gigabytes-per-second ingestion rates. Instead, each search result set is sampled down to about 10,000 evenly distributed events with a cityHash64-modulo sampling query that avoids ORDER BY rand(), returning clusters within seconds. The recommended workflow is to filter broadly by service or severity, treat rare patterns as leads, then pivot to raw search or traces. Future work could run Drain3 as a ClickHouse UDF and compile the learned templates into ingest-time extraction rules for better compression.

  • What's new in ClickStack - April 2026

    ClickHouse mediumAdept

    ClickStack's April 2026 release adds alerts driven by arbitrary ClickHouse SQL, so rolling baselines and standard-deviation anomaly checks can be written with window functions and fire when the query returns 1. The default otel_logs schema was redesigned around ClickHouse full-text indexes on attribute map keys/values and lower(Body), with a five-minute bucketed ordering key, improving sample query performance by over 70% at comparable insert cost; versions before 26.2 fall back to bloom_filter indexes. An opt-in companion column flattens attribute maps into key=value arrays so map lookups are rewritten to indexed has() predicates, running 1.4–10x faster. Autocomplete now reads from 15-minute materialized-view rollups instead of scanning live tables, and heatmaps become a general chart type.

The quest for software engineering knowledge.

Look:
Layout: