Alerting Is a Pipeline, Not a Threshold
Alerting is an architecture, not a threshold: signals flow through detection, sharded evaluation, grouping, and routing. Here is how each layer decides whether a page is real.
Loading…
Topic
5 posts about Anomaly Detection. Every summary links to the original.
See the idea
Alerting is an architecture, not a threshold: signals flow through detection, sharded evaluation, grouping, and routing. Here is how each layer decides whether a page is real.
Anomaly detection identifies meaningful departures from expected behavior. This explainer shows how signals, baselines, context, and alert routing turn unusual measurements into engineer-ready findings.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
ClickHouse stores time-series data such as logs, infrastructure metrics, and sales, but training a separate classical model like ARIMA for every series becomes difficult as the number of series grows. Time-series foundation models (TSFMs) promise zero-shot forecasts from a new series’ history without per-series training, and the post connects TimesFM 3.0 to ClickHouse through executable user-defined functions (UDFs) that send numerical arrays to a model service over HTTP. SQL handles aggregation, time bucketing, and filtering to construct each series before passing it to the UDF, and forecasts return arrays of named tuples with median, q10, and q90 bounds. Anomaly detection scores observations against the model’s expected value, and the same SQL-to-model approach could connect ClickHouse to tabular foundation models for predictions on structured rows. The demo uses the M5 retail sales dataset to forecast daily demand and identify unusual historical observations.
Agent Anomaly Detection, a new security feature on Gemini Enterprise Agent Platform, flags sessions where an AI agent acts outside its intended boundaries by reading traces and logs asynchronously. Google tested it against five public, non-Google-written benchmarks for agent goal hijack, the top OWASP risk for agentic applications. The system flagged 87% of harmful instructions that the agent carried out, with false alarms on 2% to 16% of benign sessions depending on the agent’s tools. It performed weakest on poisoned memory attacks, catching only 4 of 18 such sessions. The study used one agent model and simulated apps, so production false-alarm rates may differ.
Data teams frequently field questions about future sales, metric movements, and anomalous data, but answering them typically requires data science teams to build and manage models, creating a bottleneck. Predictive AI Functions, now in Beta, remove that bottleneck by providing SQL-native functions for forecasting, driver analysis, and anomaly detection, backed by state-of-the-art ML models maintained centrally by Databricks. The launch includes ai_forecast for time series projection, ai_top_drivers for segment driver analysis, ai_detect_anomalies for outlier detection, and ai_predict_value and ai_predict_class for regression and classification. These functions can be called directly in SQL, invoked through Genie with plain-language questions, or embedded in dashboards, delivering consistent, high-quality answers without infrastructure management. Benchmarking on fev-bench shows ai_forecast outperforms forecasting functions from leading cloud data warehouses, achieving industry-leading accuracy out of the box with no tuning required.
Managed ClickStack now supports statistical anomaly detection on query-builder charts using z-scores, allowing teams to move alerting workloads from tools like Grafana. The detection calculates the expected value from a moving average of seven one-minute buckets and the standard deviation from a two-hour baseline, with a 5% minimum change threshold to prevent false positives from stable metrics. Users configure sensitivity, baseline duration, and direction of change, and preview how often the alert would have fired over the previous 24 hours, with the chart updating as settings are adjusted. The alerting framework scales to tens of thousands of alerts through an improved scheduler and sharding that distributes evaluation across multiple workers, with a backfill mechanism for skipped evaluations and improved search, filtering, and evaluation histories in the alerts UI. Future plans include support for seasonality, median-based estimates for noisy data, and alerting on PromQL queries.
Gray failures are partial customer-facing problems that can leave health checks green while a subset of users quietly fails. RADAR (Reliability Anomaly Detection, Alerting, and Root-cause analysis) addresses this gap by collecting error counts and distinct affected users, segmented by error code and region, then applying the unsupervised streaming SPOT model. SPOT learns normal behavior from the previous 14 days using a single risk parameter, while downstream stages enrich, filter, deduplicate, and route alerts before providing anomaly details and AI/BI Genie-backed dashboards for investigation. Running RADAR internally reduced incident-discovery time by 95% with over 90% precision and no human needed to spot the pattern. The post also describes a Databricks scaffold that maps metrics, detection, alerting, and root-cause analysis to platform components and can be assembled by an AI agent from a metric, scaffold, and prompt.
The best engineering reads, once a week.