Skip to main content

AWS EC2

Overview

Amazon EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that enables organizations to easily provision and manage virtual servers in the cloud. With EC2, developers and businesses can quickly scale compute resources based on demand and only pay for the capacity they use.

Prerequisites

You can check the list of prerequisites required for AWS EC2 here. These are the same for any other AWS service that you need to monitor using AIOps. Move to the section Adding AWS resources for Monitoring on the above link to view the prerequisites for AWS resource monitoring.

List of Supported KPIs

MetricsDescriptionType
aws.ec2.status.check.failed1 if one of the status checks failedCount
aws.ec2.status.check.failed.instance0 if the instance has passed the EC2 instance status check.Count
aws.ec2.network.packetsTotal Number of bytes received on all network interfaces by the instance.Bytes
aws.ec2.status.check.failed.system0 if the instance has passed the EC2 system status check.Count
aws.ec2.cpu.percentAverage percentage of allocated EC2 compute units that are currently in use on the instance.Average
aws.ec2.cpu.credit.usageNumber of CPU credits consumed.Count
aws.ec2.cpu.surplus.credit.balanceThe number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.Count
aws.ec2.cpu.surplus.credit.chargedThe number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.Count
aws.ec2.cpu.credit.balanceNumber of CPU credits that an instance has accumulated.Average
aws.ec2.disk.io.read.ops.per.secCompleted read operations from all ephemeral disks available to the instance.Operation
aws.ec2.disk.io.write.ops.per.secCompleted write operations to all ephemeral disks available to the instance.Operation
aws.ec2.disk.io.read.bytes.per.secBytes read from all ephemeral disks available to the instance.Bytes
aws.ec2.disk.io.write.bytes.per.secBytes written to all ephemeral disks available to the instance.Bytes
aws.ec2.network.in.bytes.per.secAverage number of bytes received on all network interfaces by the instance.Average
aws.ec2.network.out.bytes.per.secAverage number of bytes sent out on all network interfaces by the instance.Average
aws.ec2.network.in.packetsNumber of packets received on all network interfaces by the instanceCount
aws.ec2.network.out.packetsNumber of packets sent out on all network interfaces by the instanceCount

EBS Volumes

MetricDescriptionType
aws.ec2.volumeIdentifier of an EBS volume attached to the instance.String
aws.ec2.volume.idUnique ID of the EBS volume.String
aws.ec2.volume.stateCurrent state of the EBS volume.String
aws.ec2.volume.typeEBS volume type, for example gp3, io2, or st1.String
aws.ec2.volume.capacity.bytesTotal storage capacity of the EBS volume.Bytes
aws.ec2.volume.iopsProvisioned IOPS for the EBS volume.Count/sec
aws.ec2.volume.bytes.per.secondsProvisioned throughput for the EBS volume.Bytes/sec
aws.ec2.volume.snapshot.idID of the snapshot from which this volume was created.String
aws.ec2.volume.availability.zoneAvailability zone in which the volume resides.String
aws.ec2.volume.creation.timeTimestamp when the EBS volume was created.Timestamp
aws.ec2.volume.read.latency.msAverage read latency of the EBS volume in milliseconds.ms
aws.ec2.volume.write.latency.msAverage write latency of the EBS volume in milliseconds.ms
aws.ec2.volume.queue.lengthNumber of I/O requests waiting to be processed by the volume.Count
aws.ec2.volume.read.bytes.per.secRead throughput of the EBS volume.Bytes/sec
aws.ec2.volume.write.bytes.per.secWrite throughput of the EBS volume.Bytes/sec
aws.ec2.volume.read.ops.per.secRead I/O operations per second on the EBS volume.Count/sec
aws.ec2.volume.write.ops.per.secWrite I/O operations per second on the EBS volume.Count/sec
aws.ec2.volume.burst.balanceRemaining burst balance percentage for burstable EBS volumes.Percent
aws.ec2.volume.read.bytesTotal bytes read from the EBS volume.Bytes
aws.ec2.volume.write.bytesTotal bytes written to the EBS volume.Bytes
aws.ec2.volume.idle.time.secondsTotal seconds the EBS volume was idle during the measurement period.Seconds

VPC

MetricDescriptionType
aws.ec2.vpcIdentifier of the VPC associated with the instance.String
aws.ec2.vpc.idUnique ID of the VPC.String
aws.ec2.vpc.stateCurrent state of the VPC.String
aws.ec2.vpc.ipv4.cidrIPv4 CIDR block assigned to the VPC.String
aws.ec2.vpc.ipv6.cidrIPv6 CIDR block assigned to the VPC.String
aws.ec2.vpc.defaultIndicates whether this is the default VPC for the account.Boolean

Subnets

MetricDescriptionType
aws.ec2.subnetIdentifier of the subnet.String
aws.ec2.subnet.idUnique ID of the subnet.String
aws.ec2.subnet.stateCurrent state of the subnet.String
aws.ec2.subnet.vpc.idID of the VPC this subnet belongs to.String
aws.ec2.subnet.ipv4.cidrIPv4 CIDR block assigned to the subnet.String
aws.ec2.subnet.availability.zoneAvailability zone in which the subnet resides.String
aws.ec2.subnet.route.tableID of the route table associated with the subnet.String
aws.ec2.subnet.network.acl.idID of the network ACL associated with the subnet.String

Route Tables

MetricDescriptionType
aws.ec2.route.tableIdentifier of the route table.String
aws.ec2.route.table.idUnique ID of the route table.String
aws.ec2.route.table.vpc.idID of the VPC this route table belongs to.String
aws.ec2.route.table.mainIndicates whether this is the main route table for the VPC.Boolean
aws.ec2.route.table.subnet.associationsNumber of subnets explicitly associated with this route table.Count
aws.ec2.route.table.edge.associationsNumber of edge associations for this route table.Count

Internet Gateways

MetricDescriptionType
aws.ec2.internet.gatewayIdentifier of the internet gateway.String
aws.ec2.internet.gateway.idUnique ID of the internet gateway.String
aws.ec2.internet.gateway.stateCurrent attachment state of the internet gateway.String
aws.ec2.internet.gateway.vpc.idID of the VPC to which this internet gateway is attached.String

NAT Gateways

MetricDescriptionType
aws.ec2.nat.gatewayIdentifier of the NAT gateway.String
aws.ec2.nat.gateway.idUnique ID of the NAT gateway.String
aws.ec2.nat.gateway.stateCurrent state of the NAT gateway.String
aws.ec2.nat.gateway.connectivity.typeConnectivity type of the NAT gateway — public or private.String
aws.ec2.nat.gateway.route.table.idID of the route table associated with the NAT gateway.String
aws.ec2.nat.gateway.availability.zoneAvailability zone in which the NAT gateway resides.String
aws.ec2.nat.gateway.associated.public.ipv4.addressesPublic IPv4 addresses associated with the NAT gateway.String
aws.ec2.nat.gateway.private.ipv4.addressPrivate IPv4 address assigned to the NAT gateway.String

Security Groups

MetricDescriptionType
aws.ec2.security.groupIdentifier of the security group.String
aws.ec2.security.group.idUnique ID of the security group.String
aws.ec2.security.group.vpc.idID of the VPC this security group belongs to.String
aws.ec2.security.group.descriptionDescription of the security group.String
aws.ec2.security.group.inbound.rulesNumber of inbound rules defined in this security group.Count
aws.ec2.security.group.outbound.rulesNumber of outbound rules defined in this security group.Count