# AWS EC2 # Introduction The purpose of this plugin is to monitor **EC2 instances and AWS regions**, using key metrics regarding CPU, networks, IOPs and disks that are essential to control and monitor these machines and to guarantee optimal performance, solve problems, plan scaling , comply with SLAs and improve security. Total and regional costs are also monitored, which is useful for keeping track of these directly from Pandora. The plugin connects to the AWS API and monitors zones and instances using the aforementioned metrics, generating an agent for each zone and instance via XML that is sent to the Pandora server. # Compatibility matrix
Systems where it has been tested | Rocky linux, Fedora 34 |
Systems where it works | Any linux system |
To obtain advanced statistics for EC2 instances, detailed monitoring must be enabled on the specific instance. This is done from the instance menu in AWS. Actions -> Monitoring and troubleshooting -> Manage detailed monitoring -> Enable
# Parameters and configuration **Parameters**--conf | Path to configuration file |
< Name used with the parameter "stats\_agent\_name" or failing that "Aws" > |
AWS EC2 Total cost | Total Aws Costs |
AWS EC2 Instances count | Total instances registered in AWS |
<Region name> |
summary.aws.ec2.CPUUtilization | Average CPU percentage used for instances in this zone |
summary.aws.ec2.DiskReadBytes | Summary of the number of bytes read from disk for each instance of this zone |
summary.aws.ec2.DiskReadOps | Summary of the number of read operations performed on the disk of each instance of this zone |
summary.aws.ec2.diskWriteBytes | Summary of the number of bytes written to disk for each instance of this zone |
summary.aws.ec2.DiskWriteOps | Summary of the number of write operations performed on the disk for each instance in this zone |
summary.aws.ec2.instances | Number of instances monitored in this zone |
summary.aws.ec2.NetworkPacketsIn | Summary of the number of incoming network packets for each instance of this zone |
summary.aws.ec2.NetworkPacketsOut | Summary of the number of outgoing network packets for each instance in this zone |
cost | Total costs for the region |
summary.aws.ec2.storage.count | Number of volumes in the area |
summary.aws.ec2.storage.size | Size in gigabytes of all volumes |
summary.aws.ec2.addresses.count | Number of IPs |
<instance ID> |
State | Machine status, in string format |
Instance State (bool) | Instance State (bool) State of the machine, 1 if it is running, 0 otherwise |
CPUUtilization | Percentage of CPU utilization used |
DiskReadBytes | Number of bytes read from disk |
DiskReadOps | The number of read operations performed on the disk |
DiskWriteBytes | Number of bytes written to disk |
DiskWriteOps | Number of write operations performed on the disk |
NetworkPacketsIn | The number of incoming network packets |
NetworkPacketsOut | The number of outgoing network packets |