This topic describes how to use an open-source alerting or notification plugin to configure alarm alerting via the Simple Message Notification (SMN) service for OpenSearch clusters in OpenSearch Dashboards.
In CSS, the open-source OpenSearch alerting plugin (opensearch-alerting) and OpenSearch notification plugin (opensearch-notifications and opensearch-notifications-core) are installed by default. They trigger alerts when data meets predefined conditions.
For more information about the OpenSearch alerting plugin, see Alerting - OpenSearch Documentation. For more information about the OpenSearch notifications plugin, see Notifications - OpenSearch Documentation.
You must log in using a CSS administrator account.
Log in using an account with CSS permissions.
Parameter | Description |
|---|---|
Name | Custom channel name. |
Description | Custom channel description. |
Type | Retain the default value SMN. |
Topic | Select the SMN topic you have created in Prerequisites for sending alert messages. |
Figure 1 Create channel

Figure 2 Channels 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:
|
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 each value of the field triggers an alarm. |
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 |
|---|---|
Trigger name | User-defined trigger name. |
Severity level | Sensitivity of a trigger, that is, the number of alarms that need to be triggered before an alarm message is sent. 1 indicates the highest sensitivity. |
Trigger condition | Trigger condition. An alarm is triggered when the trigger condition is hit. |
Action name | Trigger action name. |
Channels | Select the SMN destination created in 5. |
Message subject | A description of the message. |
Message | Alarm 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 set whether to send alarms in combination. The value can be:
|
Actionable alerts | When Monitor type is set to Per bucket monitor, set this parameter to Per alert. You need to set the alarms that can be executed after alarm triggering conditions are hit.
|
Throttling | Message sending frequency. It limits the number of notification messages can be received in a specified period. For example, if this parameter is set to 10 minutes, SMN sends only one alarm notification in the next 10 minutes even if the trigger condition is hit for multiple times. After 10 minutes, SMN sends another alarm notification if the alarm condition is met. |
Figure 3 Setting the destination of a trigger action

Figure 4 Sending a test message

Figure 5 Email notification

Log in using an account with CSS permissions.
Parameter | Description |
|---|---|
Name | User-defined destination name |
Type | Retain the default value SMN. |
Topic | Select the SMN topic you have created in Prerequisites for sending alert messages. |
Figure 6 Add destination

Figure 7 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 each value of the field triggers an alarm. |
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 |
|---|---|
Trigger name | User-defined trigger name |
Severity level | Sensitivity of a trigger, that is, the number of alarms that need to be triggered before an alarm message is sent. 1 indicates the highest sensitivity. |
Trigger condition | Trigger condition. An alarm is triggered when the trigger condition is hit. |
Action name | Trigger action name |
Destination | Select the SMN destination created in 5. |
Message | Alarm 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 set whether to send alarms in combination. The value can be:
|
Actionable alerts | When Monitor type is set to Per bucket monitor, set this parameter to Per alert. You need to set the alarms that can be executed after alarm triggering conditions are hit.
|
Throttling | Message sending frequency. It limits the number of notification messages can be received in a specified period. For example, if this parameter is set to 10 minutes, SMN sends only one alarm notification in the next 10 minutes even if the trigger condition is hit for multiple times. After 10 minutes, SMN sends another alarm notification if the alarm condition is met. |
Figure 8 Setting the destination of a trigger action

Figure 9 Sending a test message

Figure 10 Email notification
