When monitoring big data platforms in real time, O&M teams need to be promptly notified of cluster health status or any abnormal changes in service metrics. Although OpenSearch provides powerful search capabilities, the native engine lacks deep integration with cloud-native notification services. CSS addresses this by offering built-in alerting and notification plugins that integrate seamlessly with the Simple Message Notification (SMN) service. This integration enables a highly automated monitoring workflow: monitors are configured to query specified indexes periodically; triggers evaluate the query results against predefined thresholds to identify anomalies and generate alerts; CSS then calls the SMN API to push alerts to subscribers.
The open-source OpenSearch alerting plugin (opensearch-alerting) and OpenSearch notifications plugin (opensearch-notifications and opensearch-notifications-core) are built into CSS OpenSearch clusters. They trigger alerts when data meets predefined conditions.
Figure 1 Alert notification link

For more about the alerting plugin, see Alerting - OpenSearch Documentation. For more about the notifications plugin, see Notifications - OpenSearch Documentation.
Only OpenSearch 1.3.6 and 2.19.0 clusters provide a built-in alerting plugin. Only clusters of these versions support alert notification via SMN.
The CSS administrator account must have the following minimum IAM permissions:
Log in using an account with CSS permissions.
Parameter | Description |
|---|---|
Name | Custom channel name. |
Description | Channel description. |
Channel type | Type of the notification. Select SMN. |
Topic | An associated SMN topic. Select the SMN topic created in Preparations. |
Figure 2 Create channel

Figure 3 Channels

Parameter | Description | |
|---|---|---|
Monitor details | Monitor name | User-defined monitor name |
Monitor type | Monitor type, which can be:
In this example, Per query monitor is selected. For more information, see Monitors in the OpenSearch official documentation. | |
Monitor defining method | Monitor defining method. Extraction query editor is recommended.
The options of Monitor defining method are determined by the Monitor type you selected. | |
Detector | If Monitor defining method is set to Anomaly detector, select an exception detection task. | |
Frequency | Select the monitoring frequency and set the monitoring interval. The options include:
| |
Select data | Index | When Monitor defining method is set to Visual editor or Extraction query editor, you need to specify the index to be monitored. |
Time field | When Monitor defining method is set to Visual editor, you need to specify the time field to define counting parameters such as count. | |
Query | Metrics | When Monitor defining method is set to Visual editor, you need to set the metrics range for extracting statistics. |
Time range for the last | When Monitor defining method is set to Visual editor, you need to set the monitoring time range for plugins. | |
Data filter | When Monitor defining method is set to Visual editor, you need to set filters for data search. | |
Group by | When Monitor defining method is set to Visual editor, you need to specify a field so that any value of the field will always trigger an alert. | |
Define extraction query | When Monitor defining method is set to Extraction query editor, you need to enter the query statement to define the monitoring. | |
Request type | When Monitor type is set to Per cluster metrics monitor, you need to specify the request type to monitor cluster metrics, such as the running status and CPU usage. | |
Preview query and performance | Preview the query result and verify query performance under the current configuration. | |
Parameter | Description | |
|---|---|---|
Define trigger | Trigger name | User-defined trigger name. |
Severity level | Sensitivity of a trigger, that is, the number of alerts that need to be triggered before a notification is sent. 1 indicates the highest sensitivity. | |
Trigger condition | Trigger condition. An alert is triggered when the trigger condition is hit. | |
Configure actions | Action name | Trigger action name. |
Channels | Select the SMN channel created in 5. | |
Message subject | A description of the message. | |
Message | Alert message body. By default, the subject and body are defined when the destination is an email address. | |
Perform action | When Monitor type is set to Per bucket monitor, you need to specify whether to send alerts in combination. The value can be:
| |
Actionable alerts | When Monitor type is set to Per bucket monitor, and Perform action is set to Per alert, you need to set the alerts that can be executed after alert triggering conditions are hit.
| |
Throttling | Specify the message frequency to limit the number of notifications you receive within a given span of time. Without it, high-frequency or low-severity triggers may cause information overload or result in unexpected cloud costs. For example, if this parameter is set to 10 minutes, SMN sends only one alert notification in the next 10 minutes even if the trigger condition is hit multiple times. After 10 minutes, SMN sends another alert notification if the alert condition is met. | |
Figure 4 Setting the destination of a trigger action

Figure 5 Sending a test message

Figure 6 Email notification

Log in using an account with CSS permissions.
Parameter | Description |
|---|---|
Name | User-defined destination name |
Type | Type of the notification. Select SMN. |
Topic | An associated SMN topic. Select the SMN topic created in Preparations. |
Figure 7 Add destination

Figure 8 Destination list

Parameter | Description | |
|---|---|---|
Monitor details | Monitor name | User-defined monitor name |
Monitor type | Monitor type, which can be:
In this example, Per query monitor is selected. For more information, see Monitors in the OpenSearch official documentation. | |
Monitor defining method | Monitor defining method. Extraction query editor is recommended.
The options of Monitor defining method are determined by the Monitor type you selected. | |
Detector | If Monitor defining method is set to Anomaly detector, select an exception detection task. | |
Frequency | Select the monitoring frequency and set the monitoring interval. The options include:
| |
Data source | Index | When Monitor defining method is set to Visual editor or Extraction query editor, you need to specify the index to be monitored. |
Time field | When Monitor defining method is set to Visual editor, you need to specify the time field to define counting parameters such as count. | |
Query | Metrics | When Monitor defining method is set to Visual editor, you need to set the metrics range for extracting statistics. |
Time range for the last | When Monitor defining method is set to Visual editor, you need to set the monitoring time range for plugins. | |
Data filter | When Monitor defining method is set to Visual editor, you need to set filters for data search. | |
Group by | When Monitor defining method is set to Visual editor, you need to specify a field so that any value of the field will always trigger an alert. | |
Define extraction query | When Monitor defining method is set to Extraction query editor, you need to enter the query statement to define the monitoring. | |
Request type | When Monitor type is set to Per cluster metrics monitor, you need to specify the request type to monitor cluster metrics, such as the running status and CPU usage. | |
Parameter | Description | |
|---|---|---|
Define trigger | Trigger name | User-defined trigger name |
Severity level | Sensitivity of a trigger, that is, the number of alerts that need to be triggered before a notification is sent. 1 indicates the highest sensitivity. | |
Trigger condition | Trigger condition. An alert is triggered when the trigger condition is hit. | |
Configure actions | Action name | Trigger action name |
Destination | Select the SMN destination created in 5. | |
Message | Alert message body By default, the subject and body are defined when the destination is an email address. | |
Perform action | When Monitor type is set to Per bucket monitor, you need to specify whether to send alerts in combination. The value can be:
| |
Actionable alerts | When Monitor type is set to Per bucket monitor, and Perform action is set to Per alert, you need to set the alerts that can be executed after alert triggering conditions are hit.
| |
Throttling | Specify the message frequency to limit the number of notifications you receive within a given span of time. Without it, high-frequency or low-severity triggers may cause information overload or result in unexpected cloud costs. For example, if this parameter is set to 10 minutes, SMN sends only one alert notification in the next 10 minutes even if the trigger condition is hit multiple times. After 10 minutes, SMN sends another alert notification if the alert condition is met. | |
Figure 9 Setting the destination of a trigger action

Figure 10 Sending a test message

Figure 11 Email notification
