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 and 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.

Use the AWS public cloud integration to discover and collect metrics against the AWS service.

External reference

Amazon Elastic Compute Cloud - Spot Instance requests

Setup

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

Event support

CloudTrail event support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

CloudWatch alarm support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

Supported metrics

OpsRamp MetricAWS MetricMetric Display NameUnitAggregation TypeDescription
aws_ec2spot_AvailableInstancePoolsCountAvailableInstancePoolsCountAvailable Instance Pools CountCountAverageThe Spot capacity pools specified in the fleet request.
aws_ec2spot_BidsSubmittedForCapacityBidsSubmittedForCapacityBids Submitted For CapacityCountAverageThe capacity for which Amazon EC2 has submitted fleet requests.
aws_ec2spot_EligibleInstancePoolCountEligibleInstancePoolCountEligible Instance Pool CountCountAverageThe Spot capacity pools specified in the fleet request where Amazon EC2 can fulfill requests. Amazon EC2 does not fulfill requests in pools where the maximum price you're willing to pay for Spot Instances is less than the Spot price or the Spot price is greater than the price for On-Demand Instances.
aws_ec2spot_FulfilledCapacityFulfilledCapacityFulfilled CapacityCountAverageThe capacity that Amazon EC2 has fulfilled.
aws_ec2spot_MaxPercentCapacityAllocationMaxPercentCapacityAllocationMax Percent Capacity AllocationPercentAverageThe maximum value of PercentCapacityAllocation across all fleet pools specified in the fleet request.
aws_ec2spot_PendingCapacityPendingCapacityPending CapacityCountAverageThe difference between TargetCapacity and FulfilledCapacity.
aws_ec2spot_PercentCapacityAllocationPercentCapacityAllocationPercent Capacity AllocationPercentAverageThe capacity allocated for the Spot capacity pool for the specified dimensions. To get the maximum value recorded across all Spot capacity pools, use MaxPercentCapacityAllocation.
aws_ec2spot_TargetCapacityTargetCapacityTarget CapacityCountAverageThe target capacity of the fleet request.
aws_ec2spot_TerminatingCapacityTerminatingCapacityTerminating CapacityCountAverageThe capacity that is being terminated because the provisioned capacity is greater than the target capacity.