Amazon EC2 monitoring integration

Amazon EC2 provides resizable compute capacity to help you run and scale business applications in the cloud. With Site24x7's monitoring capabilities, you can monitor your EC2 instances both at the hypervisor level(CloudWatch) and at the system level(Agent).

Overview

Site24x7 supports the below modes of monitoring for Elastic Compute Cloud (EC2) instances:

  • CloudWatch EC2 integration: Monitor basic infrastructure measures like CPU usage, disk I/O stats for instance store volumes, network traffic metrics, and CPU credits usage.
  • Enhanced EC2 monitoring (CloudWatch integration + Agent based approach): Monitor deep system level metrics like memory utilization, EBS disk usage, CPU steal, process level information and application metrics by deploying our lightweight agent on your EC2 instance.
  • Monitor Capacity Reservations: Monitor the on-demand capacity reservations of EC2 instances.

Setup and configuration

  • If you haven't done it already, enable access to your AWS resource by creating Site24x7 as an IAM user or by creating a cross-account IAM role between your account and Site24x7's AWS account. Learn more.
  • Next, In the Integrate AWS Account page, please make sure the EC2 Instance checkbox is selected in the Services to be discovered field. Learn more.

Policies and permissions

Please ensure the following read level actions are present in the policy document assigned to the Site24x7 IAM entity. Learn more.

  • ec2:Describe*: Returns information for one or more instances.
  • ec2:Get*: Returns configuration data for specified instances.

Polling frequency

Basic infrastructure measures are collected as per the poll frequency set (1 minute to one day), by querying the CloudWatch API. learn more.

IT Automations

You can add automations for the AWS services supported by Site24x7. Log in to Site24x7 and go to Admin > IT Automation Templates (+) > Add Automation Templates. Once automations are added, you can schedule them to be executed one after the other.

You can now start, stop, stop with hibernate, and reboot EC2 instances using Amazon EC2 automations.

Security Findings

Fortify your Amazon EC2 instances against cyber attacks by integrating Amazon Inspector and EC2 in a single console. Inspector findings for Amazon EC2 can be grouped according to it's severity level. The group by feature lets you sort the severity categories and lists the corresponding Rules Package Name and comments if any.

In addition to adding these threshold configurations for your monitored EC2 instance, you can also choose to set thresholds and get notified for:

  • Security findings based on the severity level like high, low, medium, informational, or total count under the Inspector threshold configuration.
  • Accelerator configurations like GPU memory utilization, accelerator memory usage, and accelerator utilization.

Categorization of security findings in EC2 with Inspector integration

CloudWatch EC2 integration

Supported performance metrics

CPU credit metrics

AttributeDescriptionStatisticsData type
CPU credit usage Measures the number of consumed CPU credits consumed by the instance Average Count
CPU credit balance Measures the number of earned CPU credits accrued by the instance Average Count
CPU surplus credit balance Measures the number of surplus credits that have been consumed by the T2 unlimited instance. Average Count
CPU surplus credits charged Measures the number of consumed surplus credits that are not paid down by earned CPU credits Average Count

Resource usage metrics

AttributeDescriptionStatisticsData type
CPU utilization Measures the percentage of allocated CPU units that are currently in use by the instance. Average Percent
Disk read ops Measures the number of completed read operations on all your instance volumes. Average Count
Disk write ops Measures the number of completed write operations on all your instance volumes. Average Count
Disk read bytes Measures the bytes read from all instance store volumes. Average Bytes
Disk write bytes Bytes written to all instance store volumes. Average Bytes 
Network in Measures the number of bytes received on all network interfaces. Average Count
Network out Measures the number of bytes sent out all network interfaces. Average Count
Network packets in Measures the number of packets received on all network interfaces. Average Count
Network packets out Measures the number of packets sent out all network interfaces. Average Count
Metadata No Token The number of times the instance metadata service was successfully accessed using a method that does not use a token. Sum Count

EBS metrics for Nitro-based instances

AttributeDescriptionStatisticsData type
EBS Read Ops Completed read operations from all Amazon EBS volumes attached to the instance in a specified period of time. Average Count
EBS Write Ops Completed write operations to all EBS volumes attached to the instance in a specified period of time. Average Count
EBS Read Bytes Bytes read from all EBS volumes attached to the instance in a specified period of time. Average MB
EBS Write Bytes Bytes written to all EBS volumes attached to the instance in a specified period of time. Average MB
EBS IO Balance Percent Provides information about the percentage of I/O credits remaining in the burst bucket. Average Percentage
EBS Byte Balance Percent Provides information about the percentage of throughput credits remaining in the burst bucket. Average Percentage

Accelerator Metrics

Elastic Inference Metrics

Amazon Elastic Inference (EI) is a resource you can attach to your Amazon EC2 instances to accelerate your deep learning (DL) inference workloads. Monitor the connectivity and performance of your Elastic Inference connected to your EC2 Instance.

AttributeDescriptionStatisticsData type
Accelerator Health Check Reports whether the Elastic Inference accelerator has passed a status health check in the last minute. A value of zero (0) indicates that the status check failed. A value of one (1) indicates a status check passed. Minimum Count
Accelerator Connectivity Check Reports whether connectivity to the Elastic Inference accelerator is active or has failed. A value of zero (0) indicates a connection failure. A value of one (1) indicates a successful connection. Minimum Count
Accelerator Memory Usage Measures the memory of the Amazon Elastic Inference accelerator. Sum Bytes

Elastic Graphic Metrics

Amazon Elastic Graphics provides flexible, low-cost, and high performance graphics acceleration for your Windows instances. Monitor the connectivity and performance of your Elastic Graphics accelerator connected to your EC2 Instance.

AttributeDescriptionStatisticsData type
GPU Connectivity Check Reports whether connectivity to the Elastic Graphics accelerator is active or has failed. A value of zero (0) indicates a connection failure. A value of one (1) indicates a successful connection. Minimum Count
GPU Health Check Reports whether the Elastic Graphics accelerator has passed a status health check in the last minute. A value of zero (0) indicates that the status check failed. A value of one (1) indicates a status check passed. Minimum Count
GPU Memory Utilization Measures the GPU memory used. Sum MiB

Instance status checks

AttributeDescription
Status check failed Reports whether the instance has passed both the instance reachability and system reachability check in the last 1 minute.
Status check failed_instance Reports whether the instances has passed instance reachability check in the last 1 minute.
Status check failed_system Reports whether the instance has passed the system reachability check in the last 1 minute.

Configuration Details:

ParametersDescription
Public Host Name Shows the host name of the instance
Public IP Address Displays the IP address of the instance
Instance Type Indicates the type of the EC2 instance
Instance Launch Time Shows the time when this EC2 instance was launched
Region Name of the region where an instance is running
Instance State Denotes the functional state of the instance
Image ID Lists the Image ID of the AMI used to launch the instance
AMI Launch Index Can be used to find an instance within the launch group
Private DNS Name The private DNS name assigned to an instance
Private IP address The private IP address of an instance
Availability Zone The availability zone of an instance
Architecture The architecture of the image
RAM Disk ID RAM disk associated with an instance
Kernel Identifier Kernel associated with an instance
Root Device Type The root device type used by the AMI
Root Device Name The name of the root device used by the AMI
Add a threshold profile for your monitored EC2 instance. Learn more.

Enhanced EC2 monitoring (EC2 CloudWatch and agent integration)

You can also deploy the agent on your EC2 instance to gain more granularity into its performance. Once deployed, you can view system attributes (memory/swap usage), Process attributes (thread/handle count), disk attributes (free/used disk space) and network attributes (errors/dropped packets) side by side with the basic instance level EC2 attributes (mentioned above) obtained from cloudWatch.

If you want to learn more about on how you can enable this EC2 CloudWatch and agent integration for your EC2 instances, refer our product documentation. The documentation will also detail about the prerequisites, added benefits, UI features and agent deployment steps.

The additional attributes you'll be gaining with the integration are listed below.

Poll frequency

The system level metrics are collected every minute or every 5 minutes.

System level attributes

ParametersDescription
Physical CPU usage Overall CPU utilisation in percentage.
Memory utilization Overall memory utilisation in percentage.
Load average 1 minute Over the last minute, the average number of tasks or processes that are waiting for CPU time.
Load average 5 minutes Over the five minutes, the average number of tasks or processes that are waiting for CPU time.
Load average 15 minutes Over the fifteen minutes, the average number of tasks or processes that are waiting for CPU time.
Memory total The total memory available in bytes
Memory free The portion of the total memory that is free now.
Memory used The portion of the total memory in use
Swap total The total swap space available
Swap free The portion of the swap space which is currently free
Swap used The portion of swap space currently in use.
Disk used Disk space in use, in percentage
Disk free Free disk space, in percentage.
System busy time The amount of time the CPU spend in user or kernel space.
System Idle time The amount of time the CPU spends in idle state.

Process level attributes

ParametersDescription
Process ID The unique process identification number for the process.
CPU utilization The amount CPU usage used by the process.
Memory utilization The amount physical memory consumed by the process.
Thread count The number of active threads for the process.
Handle count The number of object handles.

Network attributes

ParametersDescription
Network interface card name The interface name for the Elastic network interface card.
Error packets The number of dropped network packets.
Transmitted bytes The number of bytes transmitted per second on a elastic network interface.
Received bytes The number of bytes received per second on a elastic network interface.
Transmitted packets The number of packets transmitted per second on a elastic network interface.
Received packets The number of packers received per second on a elastic network interface.

Additional configuration details

ParametersDescription
Host Name/IP The host name/IP for the EC2 host.
IP Address The IP address of the EC2 host.
Operating System The type of operating system currently running on the EC2 host.
OS Architecture The Processor architecture – 32bit or 64bit.
Installed Memory (MB) The installed memory on the EC2 host.
Number of CPU Cores The number of logical CPU cores on the EC2 host.
Processor The specification of the processor in use.
Add a threshold profile for your integrated EC2 instance monitor. Learn more.

Monitoring Capacity Reservations

You can now monitor the usage of the reserved capacity of AWS EC2 instances in specific availability zones and identify the used/unused capacity when there is a breach in the threshold.

Performance metrics for Capacity Reservations

AttributeDescriptionStatisticsData type
Used instance count The number of instances that are currently in use.
Note: This metric is available in the account level also if the resource is shared.
Maximum Count
Available Instance Count The number of instances that are available. Minimum Count
Total Instance Count The total number of instances you have reserved. Maximum Count
Instance Utilization The percentage of reserved capacity instances that are currently in use. Average Count

Use-cases

  • While running a batch workload at a particular time, monitoring the unused capacity can help avoid accruing additional charges.
  • Monitor and set thresholds for the used instance count at the account level to identify the capacity used.
Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.