Create a CloudWatch alarm to monitor
Cyber Recovery metrics.
Prerequisites
To monitor memory and disk use metrics, install the CloudWatch agent before creating an alarm.
About this task
You do not need to install the CloudWatch agent to monitor and create an alarm for host status and CPU metrics.
Steps
In the AWS console, go to the CloudWatch service and locate
Alarms.
Click
All alarms and then in the
Alarms page, click
Create alarm.
The first step of the Create alarm wizard is displayed.
Under
Metric in the
Specify metric and conditions page, click
Select metric.
To select the integrated EC2 host status and CPU use metrics:
Under
AWS Namespaces, click
EC2
> Per-Instance Metrics.
Select the instance associated with the appropriate metric name.
Click
Select metric.
The
Cyber Recovery instance metric names include:
StatusCheckFailed
CPUUtilization
The
Specify metric and conditions page of the Create alarm wizard is displayed.
To select the CloudWatch disk and memory use metrics:
Under
Custom Namespace, click
CWAgent.
Select the first option ( ImageId, InstanceId, InstanceType, device, fstype, path) for disk use metrics or the third option ( ImageId, InstanceId, InstanceType) for memory use metrics.
Select the instance on the root path that is associated with the appropriate metric name.
Click
Select metric.
The
Cyber Recovery instance metric names include:
Disk_used_percent
Mem_used_percent
The
Specify metric and conditions page of the Create alarm wizard is displayed. This page includes a graph that shows the configured data points.
In the section with the graph, leave the default values in the fields to the right.
Under
Conditions, set the following values and then click
Next:
Set the
Threshold type field to
Static.
For the host status metric, set the
Define the alarm condition to
Greater. Otherwise, go to the next substep.
For the other metrics, set the
Define the alarm condition to
Greater/Equal.
For the host status metric, type
0 in the
Define the threshold value field. Otherwise, go to the next substep.
For the other metrics, type
80 in the
Define the threshold value field to set the percentage used to trigger an alarm.
The
Configure actions page is displayed.
Under
Notification, set the following values and then click
Next.
For
Alarm state trigger, select
In alarm.
For
Select an SNS topic, either select an existing topic or create a new topic.
To create a new topic:
Under
Select an SNS topic, select
Create new topic.
Type a topic name.
In the
Email endpoints that will receive the notification field, type a valid email address to receive notifications.
Click
Create topic.
When you click
Next, the
Add name and description page is displayed.
Under
Name and description, do the following and then click
Next:
Provide an Alarm name, for example,
PPCR StatusCheckFailed Alarm.
Optionally, provide a meaningful description for the alarm.
The
Preview and create alarm window is displayed.
In the
Preview and create alarm, review the alarm and click
Create alarm.
The alarm is created and is displayed in the CloudWatch
Alarms page.
Repeat these steps to create an alarm for another metric or instance that you want to monitor.
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: <>()\