Get Started with Datadog

The Monitor

Find EC2 Spot savings with Datadog

Published

Read time

9m

Find EC2 Spot savings with Datadog
Matt Auerbach

Matt Auerbach

Product Manager

Cody Murray-Bruce

Cody Murray-Bruce

Product Marketing Manager

Amazon EC2 Spot Instances can offer discounts of up to 90% compared to On-Demand prices, but identifying workloads that can tolerate Spot interruptions takes careful planning. Platform engineering and FinOps teams need to evaluate scaling behavior, request or job durations, instance configurations, Spot prices, and interruption risk before deciding which workloads to migrate. That information is spread across AWS consoles, pricing pages, and monitoring systems. For organizations managing hundreds or thousands of Auto Scaling Groups (ASGs), evaluating each workload individually takes time, so teams may avoid Spot altogether or return to On-Demand after experiencing interruptions.

The Datadog EC2 Spot migration assessment, available in Preview, helps you identify which ASGs are good candidates for Spot and estimate how much you could save. The assessment evaluates ASGs across your connected AWS accounts and regions, combining potential savings, workload characteristics, and interruption risk in a single view. You can rank ASGs by estimated savings and Spot potential, then explore different Spot and On-Demand capacity mixes to understand the potential cost impact.

In this post, we’ll explain why Spot deserves another look and show how you can:

Why Spot deserves a deeper look

Spot Instances let you run workloads on spare Amazon EC2 capacity at discounts of up to 90% compared to On-Demand pricing. Spot prices vary based on supply and demand for each instance type and Availability Zone. The tradeoff is that AWS can reclaim Spot capacity when it needs that capacity back, generally providing a two-minute interruption notice.

Workloads that are stateless, horizontally scaled, and designed to restart cleanly are often good candidates for Spot. Examples include web and API services behind load balancers, batch processing jobs, CI/CD runners, and many AI and machine learning (ML) workloads. Stateful applications and consensus-based systems, such as Kafka or etcd clusters, generally require more careful consideration because interruptions can affect availability or cause data loss if they aren’t designed to handle instance replacement.

The broader compute market also makes Spot worth evaluating. Cloud providers are expanding infrastructure capacity to support demand for AI workloads, while improvements in AI efficiency continue to change compute requirements. These trends could create additional opportunities for spare capacity, although actual Spot availability will continue to vary by instance type, region, and Availability Zone.

For teams already running workloads in ASGs, the opportunity is to identify which applications can tolerate interruptions and whether the potential savings justify a migration.

Find your best Spot candidates across Auto Scaling Groups

The EC2 Spot migration assessment ranks your ASGs by estimated monthly savings and Spot potential, helping you identify where to focus your optimization efforts. Instead of manually reviewing each ASG in the AWS console, comparing instance prices, and checking interruption histories, you can review potential migration opportunities across your connected AWS accounts in one place.

The assessment provides a fleet-wide summary of estimated monthly Spot savings, the number of ASGs identified as Spot candidates, and the instances and regions included in the assessment. For each ASG, the list provides details such as its name, Availability Zones, instance types, instance count, current monthly cost, and estimated monthly savings.

Each group also receives a Spot potential rating of High, Medium, or Low. The assessment sorts ASGs by estimated savings, making it easier to identify workloads with the largest potential financial benefit. You can search for a specific ASG or filter by account, region, and Spot candidacy to focus on the resources your team manages.

EC2 Auto Scaling Groups ranked by estimated monthly Spot savings and Spot potential.
EC2 Auto Scaling Groups ranked by estimated monthly Spot savings and Spot potential.

For example, a FinOps team managing ASGs across multiple AWS accounts could filter the assessment to a specific region and compare the highest-savings groups. An ASG with High Spot potential and substantial estimated savings may be worth evaluating first. A group with Low Spot potential and limited savings may not justify the engineering effort needed to support interruptions.

The assessment also displays when its data was last refreshed, helping teams understand the time frame of the recommendations. For organizations with negotiated On-Demand discounts, the assessment provides a discount field to help model savings against the rates they pay. When Cloud Cost Management (CCM) data is available, the assessment can use billed costs instead of relying on public On-Demand prices.

Once you’ve identified a promising candidate, you can open its individual assessment to explore how much moving capacity to Spot could save.

Model savings at different Spot and On-Demand mixes

The EC2 Spot migration assessment lets you compare projected costs at different proportions of Spot and On-Demand capacity. Moving an entire workload to Spot may not be appropriate, especially when you’re evaluating an application that hasn’t previously used interruptible instances. Modeling a mixed fleet helps you understand the potential savings before deciding how much capacity to migrate.

Each ASG’s detailed assessment includes its account, region, Availability Zones, configured instance types, instance count, and minimum, desired, and maximum capacity. The cost analysis compares the modeled monthly cost of running the group entirely on On-Demand with the projected cost at your selected Spot mix.

An ASG cost assessment estimates monthly savings of when half its capacity moves to Spot.
An ASG cost assessment estimates monthly savings of when half its capacity moves to Spot.

The assessment breaks down projected spend by capacity type, including monthly cost, hourly rate, and percentage of overall spend. In the preceding example, although Spot represents 50% of the group’s capacity, it accounts for only 26% of its projected spend. The remaining 74% comes from On-Demand capacity.

You can adjust the Spot mix slider from 0% to 100% to see how projected costs and savings change. A suggested mix provides a starting point for the assessment. Because the model uses a 30-day assessment period, it accounts for how an ASG has scaled over time instead of estimating costs from a single snapshot.

For teams that prefer a gradual transition, the slider can help quantify the savings from moving an initial 20–30% of capacity to Spot. You can then compare that conservative configuration with more aggressive mixes before deciding how to proceed.

Evaluate whether workloads can tolerate Spot interruptions

Cost savings alone don’t determine whether an ASG is a good Spot candidate. Teams also need to understand how interruptions could affect the workload. The EC2 Spot migration assessment provides a Spot potential rating to help teams evaluate how suitable an ASG is for running on interruptible capacity. The rating considers workload behavior and interruption risk alongside potential savings, helping engineers distinguish between applications that may tolerate instance replacement and those that require further investigation.

An ASG that scales frequently and distributes traffic across replaceable instances may be a stronger candidate than one running a stateful service with long-running operations. Workload characteristics such as scaling patterns, request durations, and dependencies can affect whether an application can recover when AWS reclaims capacity.

For example, consider two ASGs with similar estimated savings. One supports a stateless API behind a load balancer, while the other runs a stateful application that depends on local instance storage. The first workload may be able to drain connections and replace instances with limited disruption. The second may require changes to how it persists data or handles interrupted operations before moving to Spot.

Spot potential ratings help teams prioritize these evaluations:

  • High: A promising candidate for evaluating a Spot migration based on its workload characteristics and interruption risk

  • Medium: A candidate that may benefit from additional configuration changes or a more conservative Spot mix

  • Low: A workload that warrants closer examination before considering a migration

These ratings provide a starting point for engineering review rather than a guarantee that a workload will tolerate interruptions.

Spot potential assessment provides workload and interruption-risk context for evaluating an ASG migration.
Spot potential assessment provides workload and interruption-risk context for evaluating an ASG migration.

As teams evaluate migration candidates, they can consider improvements such as distributing instances across additional Availability Zones, supporting more instance types, or improving application shutdown behavior. These changes can help workloads tolerate the conditions of the Spot market.

Compare Spot prices and interruption risk by instance type

Datadog provides Spot pricing and interruption-rate metrics that help teams evaluate the tradeoffs between instance cost and interruption risk. Because each instance type in each Availability Zone represents a separate Spot capacity pool, diversifying instance configurations can improve the likelihood of obtaining capacity and reduce dependence on a particular pool.

The AWS integration collects the following metrics:

  • aws.ec2.spot.price: Spot pricing for EC2 instance types

  • aws.ec2.instance_price: EC2 instance pricing for comparison

  • aws.ec2.spot.interruption_rate_min: Lower bound of the published Spot interruption-rate range

  • aws.ec2.spot.interruption_rate_max: Upper bound of the published Spot interruption-rate range

You can use these metrics to compare pricing and interruption risk across instance types and regions, and graph them alongside your other EC2 metrics in Datadog.

For example, an ASG might rely on a small set of compute-optimized instance types. Before moving capacity to Spot, the platform team can evaluate alternative instance families and sizes that meet the workload’s CPU, memory, and storage requirements. Some larger Spot instance types may even cost less than smaller On-Demand alternatives.

Price alone shouldn’t determine instance selection. An instance type with a lower Spot price but a higher interruption rate may be a less suitable choice for workloads that take time to restart or replace. Comparing interruption-rate ranges alongside prices helps teams weigh the potential savings against the operational risk.

Datadog also provides an is_spot tag that lets you distinguish Spot hosts from On-Demand hosts in standard EC2 metrics. You can use this tag to compare CPU, network, disk, and other performance indicators across the two purchasing models.

For teams already running Spot workloads, the out-of-the-box Amazon EC2 Spot Observability dashboard provides additional visibility into active Spot Instances by instance type and region, interruption events, and host performance. It also displays Spot and On-Demand pricing for reference.

Together, these capabilities provide context for choosing instance types and monitoring their behavior after migrating workloads.

Identify your EC2 Spot migration opportunities

The EC2 Spot migration assessment helps platform engineering and FinOps teams identify promising Spot candidates across their ASGs and estimate the savings from migrating them. By bringing workload characteristics, projected costs, and interruption-risk information into one assessment, Datadog helps teams make informed decisions about where to introduce Spot capacity and how much to use.

The EC2 Spot migration assessment is available in Preview. To get started, you’ll need at least one EC2 Auto Scaling Group, Resource Collection enabled in your Datadog AWS integration, and the relevant AWS namespaces enabled, such as AWS/AutoScaling. Cloud Cost Management data can provide additional cost context for your assessments.

If you’re already using Spot Instances, you can also use the Amazon EC2 Spot Observability dashboard to monitor interruptions, infrastructure performance, and instance pricing. For more information about configuring mixed Spot and On-Demand fleets, read the AWS mixed instances groups documentation.

If you’re new to Datadog, to start monitoring your EC2 infrastructure.

Start monitoring your metrics in minutes