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.
Note
Use the OpsRamp AWS public cloud integration to discover and collect metrics against the AWS service.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 Metric | Metric Display Name | Unit | Aggregation Type | Description |
---|---|---|---|---|
aws_ec2spot_AvailableInstancePoolsCount | AvailableInstancePoolsCount | Count | Average | The Spot Instance pools specified in the Spot Fleet request. |
aws_ec2spot_BidsSubmittedForCapacity | BidsSubmittedForCapacity | Count | Average | The Spot Instance pools specified in the Spot Fleet request. |
aws_ec2spot_EligibleInstancePoolCount | EligibleInstancePoolCount | Count | Average | The 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_FulfilledCapacity | FulfilledCapacity | Count | Average | The capacity that Amazon EC2 has fulfilled. |
aws_ec2spot_MaxPercentCapacityAllocation | MaxPercentCapacityAllocation | Percent | Average | Maximum value of PercentCapacityAllocation across all Spot Fleet pools specified in the Spot Fleet request. |
aws_ec2spot_PendingCapacity | PendingCapacity | Count | Average | The difference between TargetCapacity and FulfilledCapacity. |
aws_ec2spot_PercentCapacityAllocation | PercentCapacityAllocation | Percent | Average | Capacity 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_TargetCapacity | TargetCapacity | Count | Average | Target capacity of the Spot Fleet request. |
aws_ec2spot_TerminatingCapacity | TerminatingCapacity | Count | Average | The 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.