Now you will configure an OpenSearch Alert using the index you created in the last step. First you need to configure the SNS Topic created from the CloudFormation script as an OpenSearch Alert Destination. This will allow OpenSearch to use the SNS destination to send alerts.
On the add destination page configure the destination entering the values for each field in the table below
Field | Value |
---|---|
Name | SNS Destination |
Type | Amazon SNS |
SNS topic ARN | TopicARN value from CloudFormation output |
IAM role ARN | IAMRoleARN value from CloudFormation output |
An example destination may look like
Using the destination you configured, you will configure a monitor that will trigger an alert if cpu_util exceeds 50.
Field | Value |
---|---|
Monitor name | High CPU Alert |
Monitor type | Per query monitor |
Monitor defining method | Visual editor |
Frequency | By interval |
Run every | 1 Minutes |
Index | alert-1 |
Time field | eventtime |
An example monitor details and data source may look like
Field | Value |
---|---|
Trigger name | CPU over 50 |
Severity level | 1 (Highest) |
Trigger condition | IS ABOVE 50 |
An example trigger configuration may look like
Field | Value |
---|---|
Action name | Email Alert |
Destination | SNS Destination (Amazon SNS) |
Message subject | High CPU! |
Message | Leave default message |
An example action may look like
After the Monitor saves, your new High CPU Alert monitor dashboard will be available
When you are ready move on, go to the next step Trigger Alert