This guide shows how you can use a simple email alert to monitor the status of your Oracle Notifications Service (ONS) Topics.
For more details, refer to the technical documentation.
-
From the OCI Console navigation menu, select Application Integration, and then select Notifications
-
Click Create Topic and create a topic with my_ons_status name
-
Choose your topic, click Create Subscription and use the following example:
- Protocol: Select Email
- Email: Enter your email address
-
The subscription will be created in "Pending" status. You will receive a confirmation email and will need to click on the link in the email to confirm your email address.
-
From the navigation menu, select Application Integration, and then select Notification
-
Choose the notification topic that you want to monitor and click on Metrics link under Resources in the left navigation pane
-
From the chart that you want to add the alarm e.g. "Failed Messages Count", click on Options and Create an Alarm on this Query
-
Add a name and on Notification select Destination service as Notifications service, select the compartment your_compartment, and select Topic as my_ons_status
-
From the navigation menu, select Monitoring, and then select Alarm definitions
-
Click Create Alarm and use the following example:
- Alarm Name: my_ons_status
- Alarm severity: Critical
- Alarm body: OCI Alarm: my notification
-
On Metric description select the compartment your_compartment, select Metric namespace as oci_notification, Metric name as FailedMessagesSize, Interval as 1m, and Statistic as Sum
-
On Trigger rule select Value greater or equal than 1
-
On Notification select Destination service as notification service, select the compartment your_compartment, and select Topic as my_ons_status