詳細検索

【AWS】 Use CloudWatch to check the resource status of your EC2 instance

Avatar
by 白川哲也
2 min read

【AWS】 Use CloudWatch to check the resource status of your EC2 instance
Translated from 日本語 • View original

Nice to meet you, this is Shirakawa, the director.

AWS allows you to use various services from the GUI, so it's very kind to me as a director.

Now, in order to operate web services, it is essential to monitor the operation status of the infrastructure. In addition to monitoring the life and death of the device itself, it is necessary to constantly monitor the usage of resources such as memory, CPU, and disk, and take appropriate measures according to the load situation.

Therefore, in this article, we will introduce how to check the resource usage of EC2 instances using CloudWatch, a cloud monitoring tool provided by AWS.

1. How to check CloudWatch

Go to the AWS Management Console and select CloudWatch from the menu.

Image-1

From the "Dashboard" on the left side of the screen, select [EC2].

Image-2

The ID and metric name for each instance are displayed. Review the combination of instances and metrics you want to view the graph for and check the box.

Image-3

You will see a graph at the bottom of the screen. *The figure is an image showing CPU usage.

Image-4

2. How to Look at the Graph

The drop-down box called Average points to the Statistics for each data. You can choose Average, Minimum, Maximum, and Sum, respectively. *Data Samples refers to the number of data obtained as samples. I don't think this is used much to check the usage of CPU and memory.

Image-5

3. Standard EC2 metrics in CloudWatch

For EC2 metrics that can be viewed on CloudWatch, please check the AWS documentation below.

4. Conclusion

In addition to the EC2 resources introduced in this article, CloudWatch allows you to monitor various AWS resources such as RDS, ELB, and Auto Scaling. However, CloudWatch statistics are only stored for two weeks, so they are not suitable for resource analysis over a long span. In such cases, you should consider using advanced monitoring software such as Zabbix.

ISAO also has a lot of high-level cloud monitoring results using Zabbix and other methods, so please feel free to contact us when considering it.

Related Articles