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 Metric | AWS Metric | Metric Display Name | Unit | Aggregation Type | Description |
|---|---|---|---|---|---|
| aws_ec2spot_AvailableInstancePoolsCount | AvailableInstancePoolsCount | Available Instance Pools Count | Count | Average | The Spot capacity pools specified in the fleet request. |
| aws_ec2spot_BidsSubmittedForCapacity | BidsSubmittedForCapacity | Bids Submitted For Capacity | Count | Average | The capacity for which Amazon EC2 has submitted fleet requests. |
| aws_ec2spot_EligibleInstancePoolCount | EligibleInstancePoolCount | Eligible Instance Pool Count | Count | Average | The 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_FulfilledCapacity | FulfilledCapacity | Fulfilled Capacity | Count | Average | The capacity that Amazon EC2 has fulfilled. |
| aws_ec2spot_MaxPercentCapacityAllocation | MaxPercentCapacityAllocation | Max Percent Capacity Allocation | Percent | Average | The maximum value of PercentCapacityAllocation across all fleet pools specified in the fleet request. |
| aws_ec2spot_PendingCapacity | PendingCapacity | Pending Capacity | Count | Average | The difference between TargetCapacity and FulfilledCapacity. |
| aws_ec2spot_PercentCapacityAllocation | PercentCapacityAllocation | Percent Capacity Allocation | Percent | Average | The 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_TargetCapacity | TargetCapacity | Target Capacity | Count | Average | The target capacity of the fleet request. |
| aws_ec2spot_TerminatingCapacity | TerminatingCapacity | Terminating Capacity | Count | Average | The capacity that is being terminated because the provisioned capacity is greater than the target capacity. |