An EC2 (Elastic Compute Cloud) instance is a virtual server and a web service. As a web service, an AWS subscriber can request and provision a compute server in the AWS cloud.

Resource Information:

  • Type of Resource: Generic monitorable resource
  • Discovery type: AWS SDK discovery type
  • Discovery profile selection: Resource can be discovered by “EC2 Instance” in the profiler
  • ResourceTag: DEVICE
  • Resource Unique Identification: InstanceId (instance.instanceId())
  • Dependencies: EC2 Instance runs on VPC, subnets, and may have attached EBS volumes, security groups, and key pairs

External reference

Amazon EC2 instances

Setup

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

Event support

CloudTrail event support

  • Supported: CloudTrail events (ModifyInstanceAttribute, RebootInstances, ResetInstanceAttribute, RunInstances, StartInstances, StopInstances, TerminateInstances)
  • 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_ec2_CPUCreditBalanceCPUCreditBalanceCPU Credit BalanceCountAverageThe number of earned CPU credits that an instance has accrued since it was launched or started. For T2 Standard, theCPUCreditBalancealso includes the number of launch credits that have been accrued.
aws_ec2_CPUCreditUsageCPUCreditUsageCPU Credit UsageCountAverageThe number of CPU credits spent by the instance for CPU utilization. One CPU credit equals one vCPU running at 100% utilization for one minute or an equivalent combination of vCPUs, utilization, and time
aws_ec2_CPUSurplusCreditBalanceCPUSurplusCreditBalanceCPU Surplus Credit BalanceCountAverageThe number of surplus credits that have been spent by anunlimitedinstance when itsCPUCreditBalancevalue is zero.
aws_ec2_CPUSurplusCreditsChargedCPUSurplusCreditsChargedCPU Surplus Credits ChargedCountAverageThe number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
aws_ec2_CPUUtilizationCPUUtilizationCPU UtilizationPercentAverageThe percentage of physical CPU time that Amazon EC2 uses to run the EC2 instance, which includes time spent to run both the user code and the Amazon EC2 code.
aws_ec2_DedicatedHostCPUUtilizationDedicatedHostCPUUtilizationDedicated Host CPU UtilizationPercentAverageThe percentage of allocated compute capacity that is currently in use by the instances running on the Dedicated Host.
aws_ec2_DiskReadBytesDiskReadBytesDisk Read BytesBytesAverageBytes read from all instance store volumes available to the instance.This metric is used to determine the volume of the data the application reads from the hard disk of the instance.
aws_ec2_DiskReadOpsDiskReadOpsDisk Read OpsCountAverageCompleted read operations from all instance store volumes available to the instance in a specified period of time.
aws_ec2_DiskWriteBytesDiskWriteBytesDisk Write BytesBytesAverageBytes written to all instance store volumes available to the instance.This metric is used to determine the volume of the data the application writes onto the hard disk of the instance.
aws_ec2_DiskWriteOpsDiskWriteOpsDisk Write OpsCountAverageCompleted write operations to all instance store volumes available to the instance in a specified period of time.
aws_ec2_EBSByteBalancePercentEBSByteBalance%EBS Byte Balance%PercentMaximumProvides information about the percentage of throughput credits remaining in the burst bucket.
aws_ec2_EBSIOBalancePercentEBSIOBalance%EBSIO Balance%PercentMaximumProvides information about the percentage of I/O credits remaining in the burst bucket. This metric is available for basic monitoring only.
aws_ec2_EBSReadBytesEBSReadBytesEBS Read BytesBytesAverageBytes read from all EBS volumes attached to the instance in a specified period of time.The number reported is the number of bytes read during the period.
aws_ec2_EBSReadOpsEBSReadOpsEBS Read OpsCountAverageCompleted read operations from all Amazon EBS volumes attached to the instance in a specified period of time.
aws_ec2_EBSWriteBytesEBSWriteBytesEBS Write BytesBytesAverageBytes written to all EBS volumes attached to the instance in a specified period of time.The number reported is the number of bytes written during the period.
aws_ec2_EBSWriteOpsEBSWriteOpsEBS Write OpsCountAverageCompleted write operations to all EBS volumes attached to the instance in a specified period of time.
aws_ec2_GPUPowerUtilizationGPUPowerUtilizationGPU Power UtilizationPercentAverageActive power usage as a percentage of maximum active power.
aws_ec2_InstanceEBSIOPSExceededCheckInstanceEBSIOPSExceededCheckInstance EBSIOPS Exceeded CheckNoneAverageReports whether an application attempted to drive IOPS that exceeds the maximum EBS IOPS limits for the instance within the last minute.
aws_ec2_InstanceEBSThroughputExceededCheckInstanceEBSThroughputExceededCheckInstance EBS Throughput Exceeded CheckNoneAverageReports whether an application attempted to drive throughput that exceeds the maximum EBS throughput limits for the instance within the last minute.
aws_ec2_MetadataNoTokenMetadataNoTokenMetadata No TokenCountSumThe number of times the Instance Metadata Service (IMDS) was successfully accessed using a method that does not use a token.
aws_ec2_MetadataNoTokenRejectedMetadataNoTokenRejectedMetadata No Token RejectedCountSumThe number of times an IMDSv1 call was attempted after IMDSv1 was disabled.
aws_ec2_NetworkInNetworkInNetwork InBytesSumThe number of bytes received by the instance on all network interfaces.
aws_ec2_NetworkOutNetworkOutNetwork OutBytesSumThe number of bytes sent out by the instance on all network interfaces.
aws_ec2_NetworkPacketsInNetworkPacketsInNetwork Packets InCountSumThe number of packets received by the instance on all network interfaces.
aws_ec2_NetworkPacketsOutNetworkPacketsOutNetwork Packets OutCountSumThe number of packets sent out by the instance on all network interfaces.
aws_ec2_StatusCheckFailedStatusCheckFailedStatus Check FailedCountAverageReports whether the instance has passed all status checks in the last minute.This metric can be either0(passed) or1(failed).
aws_ec2_StatusCheckFailed_AttachedEBSStatusCheckFailed_AttachedEBSStatus Check Failed_Attached EBSCountAverageReports whether the instance has passed the attached EBS status check in the last minute.This metric can be either0(passed) or1(failed).
aws_ec2_StatusCheckFailed_InstanceStatusCheckFailed_InstanceStatus Check Failed_InstanceCountAverageReports whether the instance has passed the instance status check in the last minute.This metric can be either0(passed) or1(failed).
aws_ec2_StatusCheckFailed_SystemStatusCheckFailed_SystemStatus Check Failed_SystemCountAverageReports whether the instance has passed the system status check in the last minute.This metric can be either0(passed) or1(failed).