Enable detailed monitoring for EC2 instance

0

Does enabling detailed monitoring for an EC2 instance provide memory usage metric?

已提問 2 年前檢視次數 1539 次
2 個答案
1

No, enabling detailed monitoring will just provide data in 1-minute periods. It does not include metrics on memory usage. The available CloudWatch metrics for the basic monitoring (5-minute period) and detailed monitoring (1-minute period) can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html.

If you need to view memory usage metrics, you need to use a CloudWatch Agent. More details here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html and https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/metrics-collected-by-CloudWatch-agent.html.

profile picture
joahna
已回答 2 年前
0

By default, Amazon EC2 metrics related to CPUUtilization, a set of disk Read and Write metrics, and a set of NetworkIn and NetworkOut can be fetched. But, EC2 doesn't provide metrics related to OS-level memory usage or disk usage metrics. You will need to configure custom metrics for memory. Please follow steps in this article to configure memory metrics. https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-memory-metrics-ec2/#:~:text=By%20default%2C%20Amazon%20EC2%20delivers,usage%20or%20disk%20usage%20metrics.

profile picture
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南