CloudMonitor allows you to configure an alert rule for a custom metric. If the metric value reaches the specified threshold, CloudMonitor sends alert notifications to the alert contacts in the contact group that you specify.
- Log on to the CloudMonitor console.
- In the left-side navigation pane, click Custom Monitoring.
- On the Event Monitoring page, click the Alert Rules tab.
- Click Create Alert Rule.
- In the Create/Modify Custom Monitoring Alert Rule panel, configure the parameters for the alert rule. The following table describes
Parameter Description Rule Name The name of the alert rule. Application Group The ID of the application group to which the alert rule belongs.
By default, the Application Group parameter is set to Does not belong to any group. You can select an application group based on your business requirements. For more information, see Create an application group.
Metric The name of the custom metric. Dimension The resources for which you want to query the monitoring data.
Format: a set of key-value pairs. Examples:
The notification method. In this example, the Email + DingTalk option is specified.
Rule Description The condition that triggers the alert rule. If the metric meets the specified condition, the alert rule is triggered. Contact Group A group of alert contacts that receive alert notifications. For more information, see Create an alert contact or alert contact group.
- If the Application Group parameter is set to Does not belong to any group, you can select a contact group. If the alert rule is triggered, the alert contacts in the contact group receive alert notifications.
- If you select an application group from the Application Group drop-down list, you can select a contact group. If the alert rule is triggered, the alert contacts in the contact group receive alert notifications. The contact group of the application group remains unchanged. The alert contacts in the contact group do not receive alert notifications.
Triggered when threshold is exceeded for The number of consecutive times the threshold value is exceeded. If the number of times exceeds the limit that you specify, the alert contacts in the contact group receive alert notifications. Valid values: 1, 3, 5, 10, 15, and 30. Mute For The interval at which CloudMonitor sends alert notifications until the alert that is triggered based on the alert rule is cleared. Valid values: 5miniute, 10minute, 15minute, 30minute, 60minute, 3hour, 6hour, 12hour, and 24hour.
If the threshold value is exceeded, CloudMonitor sends an alert notification. If the threshold value is exceeded again within the mute period, CloudMonitor does not resend an alert notification. If the alert is not cleared when the mute period elapses, CloudMonitor resends an alert notification.
Effective Time The period during which the alert rule is effective. CloudMonitor monitors the specified resources based on the alert rule only within the specified period. Alert Callback The callback URL that can be accessed over the Internet. CloudMonitor sends a POST or GET request to push an alert to the callback URL that you specify. Only HTTP requests are supported. For more information about how to set callback URLs, see Use the alert callback feature to send notifications about threshold-triggered alerts.
- Click Confirm.