Skip to Content
Solution PlaysPlay 20: Play 20 β€” Anomaly Detection 🚨

Play 20 β€” Anomaly Detection 🚨

AI-powered anomaly detection with LLM root cause analysis and intelligent alerting.

Detect anomalies in time-series metrics using statistical methods and Azure Anomaly Detector, then use GPT-4o to automatically analyze root causes and suggest remediation. Intelligent alerting with suppression rules reduces alert fatigue while catching real incidents.

Quick Start

cd solution-plays/20-anomaly-detection az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json code . # Use @builder for detection pipeline, @reviewer for sensitivity audit, @tuner for thresholds

Architecture

πŸ“ Full architecture details

ServicePurpose
Azure Anomaly DetectorMultivariate time-series anomaly detection
Azure OpenAI (gpt-4o)LLM-powered root cause analysis
Log AnalyticsMetric storage + KQL anomaly queries
Azure MonitorAlert rules + action groups
Azure FunctionsDetection pipeline trigger

Detection Methods

MethodBest ForSpeed
Statistical (Z-score)Simple threshold-based<1s
Azure Anomaly DetectorMultivariate patterns2-5s
LLM pattern recognitionContext-dependent analysis5-10s

Key Metrics

  • Precision: β‰₯85% Β· Recall: β‰₯90% Β· Detection latency: <5min Β· False positive: <15%

DevKit (AIOps-Focused)

PrimitiveWhat It Does
3 agentsBuilder (detection pipeline/alerting/root cause), Reviewer (sensitivity/FP audit), Tuner (thresholds/suppression/seasonal)
3 skillsDeploy (103 lines), Evaluate (104 lines), Tune (110 lines)
4 prompts/deploy (pipeline + alerting), /test (detection accuracy), /review (sensitivity/routing), /evaluate (precision/recall)

Note: This is an AIOps/anomaly detection play. TuneKit covers detection thresholds (Οƒ levels per metric), time windows, suppression rules, seasonal baselines, and root cause prompt tuning β€” not AI model quality parameters.

Cost Estimate

ServiceDev/PoCProductionEnterprise
Azure Event Hubs$11/mo$90/mo$500/mo
Azure Stream Analytics$80/mo$480/mo$960/mo
Azure OpenAI$20/mo$150/mo$600/mo
Cosmos DB$5/mo$60/mo$250/mo
Azure Functions$0/mo$12/mo$80/mo
Application Insights$0/mo$30/mo$100/mo
Key Vault$1/mo$3/mo$10/mo
Azure Notification Hubs$0/mo$10/mo$50/mo
Total$117/mo$835/mo$2,550/mo

πŸ’° Full cost breakdown

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/20-anomaly-detectionΒ 

FAI Manifest

FieldValue
Play20-anomaly-detection
Version1.0.0
KnowledgeT3-Production-Patterns, F1-GenAI-Foundations
WAF Pillarsreliability, security, operational-excellence
Groundednessβ‰₯ 85%
Safety0 violations max
Last updated on