ML-Based Operational Anomaly Detection - Catching Issues Early with Amazon DevOps Guru

Learn how Amazon DevOps Guru uses ML to detect operational anomalies, including automatic CloudWatch metrics analysis, proactive anomaly detection, recommended actions, and CloudFormation stack-level monitoring.

Operational Monitoring Challenges and the Role of DevOps Guru

In cloud environments, operational monitoring typically involves setting up CloudWatch metrics, alarms, and dashboards to detect anomalies. However, in large-scale environments with hundreds to thousands of metrics, setting and maintaining appropriate thresholds for every metric is impractical. Additionally, some complex anomalies (such as CPU appearing normal while latency gradually increases and error rates slightly rise) cannot be caught by individual metric thresholds. Amazon DevOps Guru is a service that uses ML models to automatically analyze CloudWatch metrics, CloudTrail events, and Config configuration changes, detecting operational anomalies at the early warning stage. AWS has announced that DevOps Guru will stop accepting new customers on October 29, 2026, and will end support on September 30, 2027. No individual metric thresholds are needed; DevOps Guru learns from historical patterns to dynamically build baselines. Its multi-metric correlation analysis catches complex anomalies that single-metric monitoring would miss.

Configuring Monitoring Targets and Anomaly Detection

DevOps Guru monitoring targets can be specified at three levels: CloudFormation stacks, tags, or the entire AWS account. CloudFormation stack-based targeting monitors only resources within specific stacks (applications), enabling monitoring aligned with application boundaries and making it easier to identify the scope of anomalies. Account-wide monitoring covers all resources in the AWS account. DevOps Guru automatically collects and analyzes CloudWatch metrics for target resources. For Lambda functions, it monitors invocation counts, error rates, and execution duration. For DynamoDB, it tracks read/write capacity utilization and throttling events. For RDS, it monitors CPU utilization, connection counts, and disk I/O. When an anomaly is detected, it is reported as an Insight, which includes the related metric anomalies, estimated root cause, and recommended actions.

DevOps Guru Insights include estimated root causes and specific recommended actions. For example, if a Lambda function's error rate increases, it correlates with recent CloudFormation deployment events or Config configuration changes and may estimate that "a recent deployment is the likely cause." If DynamoDB throttling is detected, it recommends "increasing provisioned capacity" or "switching to on-demand mode." Insights are classified into two types: Reactive (anomalies already causing impact) and Proactive (anomalies showing early warning signs but not yet causing impact). Proactive Insights enable you to take action before an outage occurs, helping prevent downtime. SNS notifications provide immediate alerts when Insights are generated, and EventBridge integration lets you incorporate them into existing incident management workflows like PagerDuty or Slack.

Comparison with CloudWatch Anomaly Detection

Both DevOps Guru and CloudWatch Anomaly Detection use ML-based anomaly detection, but they differ in scope. CloudWatch Anomaly Detection sets an anomaly detection band (expected value range) for individual metrics and triggers an alarm when the band is breached. It requires per-metric configuration and does not perform multi-metric correlation analysis. DevOps Guru targets the entire application, automatically performing multi-metric correlation analysis and root cause estimation. Configuration only requires specifying monitoring targets, with no individual metric threshold setup needed. The two can be used together: existing DevOps Guru customers can set explicit CloudWatch Anomaly Detection alarms for critical individual metrics (API latency, error rates, etc.) and use DevOps Guru for comprehensive application-wide monitoring.

DevOps Guru Pricing

DevOps Guru charges for the hours in which each analyzed AWS resource is active (produces metrics, events, or log entries). The rate per resource per hour is $0.0028 for Lambda functions and S3 buckets and $0.0042 for other resource types. If 100 resources are active for a full month (730 hours), the cost is approximately $204-$307 (as of October 2026). Both Proactive Insights (early warning detection) and Reactive Insights (incident analysis) are included. Limit analysis targets to production resources and exclude development/test environments to optimize costs.

Summary - DevOps Guru Usage Guidelines

Amazon DevOps Guru is a service that uses ML-based automatic analysis to detect operational anomalies at the early warning stage. Its key strengths are automatic CloudWatch metrics analysis, multi-metric correlation analysis, root cause estimation, and recommended actions. CloudFormation stack-level monitoring enables anomaly detection aligned with application boundaries, and no individual metric thresholds need to be configured.

References (Official AWS Resources)

The primary sources for this page are the official AWS website and documentation. Check the official pages below for the latest specifications and pricing.

If this page and the official documentation disagree, treat the official documentation as authoritative.

Share