Documentation is now available for the Fall 2020 Update release!

AWS Spot Instance Requests

Leave Feedback

Introduction

Amazon EC2 Spot Instances let you take advantage of unused EC2 capacity in the AWS cloud.

Spot Instances is used for various stateless, fault-tolerant, or flexible applications such as:

  • Big data
  • Containerized workloads
  • CI/CD
  • Web servers
  • High-performance computing (HPC)
  • Other test & development workloads

You can:

  • Choose how to launch and maintain your applications running on Spot Instances.
    This is because Spot Instances are tightly integrated with AWS services such as Auto Scaling, EMR, ECS, CloudFormation, Data Pipeline, and AWS Batch.
  • Combine Spot Instances with On-Demand and RIs to further optimize workload cost with performance.
    Due to the operating scale of AWS, Spot Instances can offer the scale and cost savings to run hyper-scale workloads.
  • Hibernate, stop or terminate your Spot Instances when EC2 reclaims the capacity back with two-minutes of notice.

Setup

To set up the OpsRamp AWS integration and discover the AWS service, go to AWS Integration Discovery Profile and select Spot Requests.

Metrics

OpsRamp MetricMetric Display NameUnitAggregation TypeDescription
aws_ec2spot_AvailableInstancePoolsCountAvailableInstancePoolsCountCountAverageThe Spot Instance pools specified in the Spot Fleet request.
aws_ec2spot_BidsSubmittedForCapacityBidsSubmittedForCapacityCountAverageThe Spot Instance pools specified in the Spot Fleet request.
aws_ec2spot_EligibleInstancePoolCountEligibleInstancePoolCountCountAverageThe Spot Instance pools specified in the Spot Fleet request where Amazon EC2 can fulfill bids. Amazon EC2 does not fulfill bids in pools where your bid price is less than the Spot price or the Spot price is greater than the price for On-Demand Instances.
aws_ec2spot_FulfilledCapacityFulfilledCapacityCountAverageThe capacity that Amazon EC2 has fulfilled.
aws_ec2spot_MaxPercentCapacityAllocationMaxPercentCapacityAllocationPercentAverageMaximum value of PercentCapacityAllocation across all Spot Fleet pools specified in the Spot Fleet request.
aws_ec2spot_PendingCapacityPendingCapacityCountAverageThe difference between TargetCapacity and FulfilledCapacity.
aws_ec2spot_PercentCapacityAllocationPercentCapacityAllocationPercentAverageCapacity allocated for the Spot Instance pool for the specified dimensions. To get the maximum value recorded across all Spot Instance pools, use MaxPercentCapacityAllocation.
aws_ec2spot_TargetCapacityTargetCapacityCountAverageTarget capacity of the Spot Fleet request.
aws_ec2spot_TerminatingCapacityTerminatingCapacityCountAverageThe capacity that is being terminated due to Spot Instance interruptions.

Event support

CloudTrail event support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

CloudWatch alarm support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

External reference