Skip to content

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

ClickHouse 10 min read Announcement mediumAdept

Scaling ClickStack alerting with built-in anomaly detection

Managed ClickStack adds z-score anomaly detection to query-builder charts, computing the expected value from a 7-bucket one-minute moving average and the standard deviation over a longer baseline (two hours by default). A minimum 5% relative change keeps stable metrics with near-zero variance from firing, and a 30-second delay prevents batched collector sends from looking like drops. Alert evaluation was scaled to tens of thousands of alerts by loading configs only for due alerts, running lookups concurrently, batching result writes, moving webhook delivery to a background queue, and hash-sharding alerts across workers with backfill for missed windows. The current detector misses gradual drift and seasonality, so static thresholds remain recommended for persistent limits.

Assumes: z-scores and standard deviationmetrics alerting basics

Related posts

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

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

  • Faster root cause for slow traces with ClickStack Event Deltas

    ClickHouse mediumAdept

    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.

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

  • ClickStack SQL Charting and Alerting

    ClickHouse mediumAdept

    ClickStack now supports charts and alerts defined by arbitrary ClickHouse SQL, going beyond what predefined query builders can express. Query parameters such as {startDateMilliseconds:Int64} and macros such as $__filters and $__sourceTable keep SQL charts responsive to dashboard time ranges and filters, and they mirror the ClickHouse Grafana plugin so existing queries port with little change. Worked examples use window functions to compute rolling p95 latency baselines with 3-sigma bounds, and an alert query that returns 1 when error counts exceed a 30-interval rolling mean by two standard deviations. Result columns map to timestamp, series and grouping roles by type, and alerts evaluate the final numeric column per bucket and group.

The quest for software engineering knowledge.

Look:
Layout: