PDF

AWS EC2 Sensor

AWS EC2 Sensor allows monitoring usage of Amazon Cloud service Elastic Compute Cloud (EC2) Instance resources.

The sensor monitors the Network load, Disk usage, and CPU utilization for each available EC2 Instance. CPU Credits usage metrics are also available. You can use these metrics to determine whether you should launch additional instances to handle the increased load or, conversely, the under-used instances should be stopped to save money.

Requirements

This sensor requires sufficient rights to query data from the AWS API. In IAM (Identity and Access Management), you need to create policy with statements (JSON format):

[ { "Sid": "Stmt1338559359622", "Action": [ "ec2:DescribeInstances", "ec2:DescribeVolumes" ], "Effect": "Allow", "Resource": "" }, { "Sid": "Stmt1338559372809", "Action": [ "cloudwatch:GetMetricStatistics", "cloudwatch:GetMetricData", "cloudwatch:ListMetrics", "cloudwatch:DescribeAlarms" ], "Effect": "Allow", "Resource": "" }]

Assign the above policy to the user account used for monitoring.

Options

This sensor requires credentials for AWS API. Select the region for which you want to monitor EC2 Instances. The sensor provides metrics for each EC2 Instance in the selected region.

Alerts

  • CPU Utilization > 90% - alert is added by default for all monitored EC2 Instances

Performance Metrics

  • Credit\CPU Credit Balance - The number of earned CPU credits that an instance has accrued since it was launched or started.
  • Credit\CPU Credit Usage - The number of CPU credits spent by the instance for CPU utilization.
  • Credit\CPU Surplus Credit Balance - The number of surplus credits that have been spent by a T2 Unlimited instance when its CPUCreditBalance is zero
  • Credit\CPU Surplus Credits Charged - The number of spent surplus credits that are not paid down by earned CPU credits, and thus incur an additional charge.
  • CPU\% Utilization - The percentage of allocated EC2 compute units that are currently in use on the instance.
  • Disk\Read Bytes - Bytes read from all instance store volumes available to the instance.
  • Disk\Read Operations - Completed read operations from all instance store volumes available to the instance in a specified period of time.
  • Disk\Write Bytes - Bytes write from all instance store volumes available to the instance.
  • Disk\Write Operations - Completed write operations to all instance store volumes available to the instance in a specified period of time.
  • Network\In Bytes - The number of bytes received on all network interfaces by the instance.
  • Network\Out Bytes - The number of bytes sent out on all network interfaces by the instance.
  • Network\In Packets - The number of packets received on all network interfaces by the instance.
  • Network\Out Packets - The number of packets sent out on all network interfaces by the instance.
  • Status Check Failed\Any - Reports whether the instance has passed both the instance status check and the system status check in the last minute.
  • Status Check Failed\Instance - Reports whether the instance has passed the instance status check in the last minute.
  • Status Check Failed\System - Reports whether the instance has passed the system status check in the last minute.

Reports (Data Collectors)

By default, the sensor adds a report containing Credit\CPU Credit Usage, CPU\% Utilization, Disk\Read Bytes, Disk\Write Bytes, Disk\Read Operations, and Disk\Write Operations charts. These metrics will be collected and available as a report or through Performance Trend Viewer

amazonawscloudec2