![]() ![]() If successful, you should expect to see output that looks like the below JSON.Run the get-metric-data command with the -start-time and -end-time flags set to a time period during which you expect metric data to have been reported.Īws cloudwatch get-metric-data -metric-data-queries file://./metric-data-queries.json -start-time -end-time. ![]() Create a file name metric-data-queries.json and set its content to the following, replacing with your instance's ID. This is how to configure a Windows 2016 EC2 instance to report free disk space (or any other performance counter on your server) Download a sample .json file.To do so, we will query the CloudWatch GetMetricData API using the AWS CLI. "Īfter you have installed and configured the CloudWatch agent, you should verify that the memory utilization metric is reporting data in the expected format. The below CloudWatch Agent configuration is the smallest configuration necessary to report Linux memory utilization to CloudWatch. The memory metric location is entirely customizable via Properties. You can run these scripts on your instances and configure them to report memory and disk space usage metrics to Amazon CloudWatch. The dimension combinations are important because CloudWatch treats each unique combination of dimensions as a separate metric, even if the metrics have the same metric name (see Dimension combinations). AWS meanwhile provides their own sample scripts for monitoring memory and disk space usage on your Amazon EC2 instances running Linux at least, see New Amazon CloudWatch Monitoring Scripts. The metric reported must have exactly one dimension with the InstanceId dimension name. On Windows instances, Compute Software looks for the Memory % Committed Bytes In Use metric in the CWAgent namespace. The Amazon CloudWatch Agent enables you to collect memory utilization metrics from Amazon EC2 instances across operating systems.įollow the instructions to install the CloudWatch Agent.įor Linux instances, Compute Software looks for the mem_used_percent metric in the CWAgent namespace. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |