Configure the CloudWatch agent by running the following command on the
Cyber Recovery host and responding to the queries with the recommended options as described in the following table:
Table 1. Recommended responses to the CloudWatch wizard queries The table lists wizard queries in the first column and the recommended values for those queries in the second column.
Wizard query
Value
On which OS are planning to use the agent?
1. linux
Are you using EC2 or On-Premises hosts?
1.EC2
Which user are planning to run the agent?
1. root
Do you want to turn on StartD daemon?
2. no
Do you want to monitor metrics from CollectD?
2. no
Do you want to monitor any host metrics?
1. yes
Do you want to monitor any metrics per core?
2. no
Do you want to add ec2 dimensions?
1. yes
Would you like to collect your metrics at high resolution (sub-minute resolution)?
4. 60s
Which default metrics config do you want?
2. Standard
Are you satisfied with the above config?
1. yes
Do you have an existing CloudWatch Log Agent configuration files to import for migration?
2. no
Do you want to monitor any log files?
2. no
Do you want to store the config in the SSM parameter store?
2. no
Start the agent by running the following command:
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json
The agent uses the configuration file that the wizard created in the preceding step.
Verify that the agent is running by using the following command:
sudo service amazon-cloudwatch-agent status
Wait several minutes for the CloudWatch Service to display the metrics.
Data is not available for the Topic
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please select whether the article was helpful or not.
Comments cannot contain these special characters: <>()\