CloudWatchエージェント連携

Site24x7 CloudWatchエージェントはAmazon Elastic Compute Cloud (EC2)インスタンスから詳細なデータを取得します。

CloudWatchエージェントを使用した監視の必要条件

CloudWatchエージェントネームスペース

Site24x7はデフォルトのネームスペースCWAgentに従って、Amazon CloudWatchからメトリックを収集します。カスタマイズされたネームスペースの場合は、デフォルトの状態に修正する必要があります。

CloudWatch agent namespace

CloudWatchエージェント設定ウィザードにディメンションを追加

Site24x7は次のディメンションを用いてメトリックを取得します。

  • ImageId
  • InstanceId
  • InstanceType

CloudWatchからのメトリック収集のため、上記ディメンションを有効化してください。

ポリシーと権限

次の読み取り専用権限を有効にします。

CloudWatchエージェントポリシー
  • CloudWatchAgentAdminPolicy
  • CloudWatchAgentServerPolicy
EC2権限
  • "ec2:DescribeInstances"
  • "ec2:DescribeImages"
CloudWatch権限
  • "cloudwatch:GetMetricData"
  • "cloudwatch:GetMetricStatistics"
  • "cloudwatch:ListMetrics"

Site24x7でCloudWatchエージェントを有効化

  1. Site24x7にログインし、Cloud > AWS > your AWSアカウント > アドバンス設定の順にアクセスします。
  2. EC2 CloudWatchエージェントの有効化はいにします。
    デフォルトでこのオプションは、既存ユーザーでは「いいえ」に設定されており、新規ユーザーでは「はい」に設定されています。

基準

  • Site24x7サーバー監視エージェントがすでにEC2サーバーと連携されている場合、CloudWatchエージェントは連携できません。
  • CloudWatchエージェントがEC2サーバーと連携されている場合、Site24x7サーバー監視エージェントとは連携できません。

Supported metrics

CloudWatch agent for Windows

Metric Description Unit
Memory % Committed Bytes In Use The percent of memory currently committed and in use Percentage
Logical Disk % Free Space The percent of free memory remaining on the logical disk Percentage
Paging File % Usage The percent of free memory remaining on the paging file Percentage
Processor % Idle Time The unused free processor or CPU capacity Percentage
Processor % Interrupt Time The time the processor spent receiving and servicing hardware interrupts during sample intervals Percentage
Processor % User Time The percent of time the processor spent executing in user mode Percentage
Physical Disk % Disk Time The percent of time the selected disk drive was busy servicing read or write requests Percentage
Physical Disk Write Disk write throughput per second Bytes/sec
Physical Disk Read Disk read throughput per second Bytes/sec
Physical Disk Writes/sec Disk write operations per second (IOPS that are write operations) Writes/sec
Physical Disk Reads/sec Disk read operations per second (IOPS that are read operations) Reads/sec
TCPv4 Connections Established The total number of TCP v4 connections established Count
TCPv6 Connections Established The total number of TCP v6 connections established Count

CloudWatch agent for Linux or Unix

Metric Description Unit
Memory Used The percent of memory currently in use Percentage
Swap Space Used The percent of swap space currently in use Percentage
Free Disk Inodes The number of available index nodes on the disk Count
Used Disk The percent of total disk space in use Percentage
Disk I/O Time The amount of time the disk has had I/O requests queued Milliseconds
Disk I/O Write in Bytes The number of bytes written to the disk Bytes
Disk I/O Read in Bytes The number of bytes read from the disk Bytes
Disk I/O Write Count The number of disk write operations Count
Disk I/O Read Count The number of disk read operations Count
CPU Usage Idle The percent of time the CPU is idle Percentage
CPU Usage I/O Wait The percent of time the CPU is waiting for I/O operations to complete Percentage
CPU Usage User The percent of time the CPU is in user mode Percentage
CPU Usage System The percent of time the CPU is in system mode Percentage
Netstat TCP Established The number of TCP connections established Count
Netstat TCP Time Wait The number of TCP connections currently waiting to ensure that the client received the acknowledgement of its connection termination request Count

Licensing

The CloudWatch agent integration with EC2 servers can be used for free in Site24x7.