You can configure alert rules for metrics in the CloudMonitor console. If the conditions that are specified in a rule are met, CloudMonitor automatically notifies you of anomalies in the monitoring data. This way, you can troubleshoot errors at the earliest opportunity.

Create an alert rule for multiple Tablestore instances at a time

You can apply an alert template to an application group to which product resources are added. This way, you can create alert rules for multiple Tablestore instances in the application group at a time.

Step 1: Create an application group and add product resources

The application group feature allows you to manage resources from different services and regions by group. You can create application groups based on your business requirements. You can add resources that are related to the same business to an application group. You can also manage alert rules by application group.

  1. Log on to the CloudMonitor console.
  2. Create an application group.
    1. In the left-side navigation pane, click Application Groups.
    2. On the Application Group tab, click the Create icon or Create Application Group.
    3. In the Create Application Group panel, set Creation Method to Manually Create, specify the application group name and alert contact group, and retain the default values for other parameters.

      By default, Receive Event Notifications is turned on. If Receive Event Notifications is turned on, CloudMonitor automatically notifies you when critical or warning events occur on the instances that are added to the application group.

    4. Click OK.
  3. Add product resources to the application group.
    1. On the Group Resources page of the application group, click Manage Products and Resources.
    2. In the Add /Modify Group Resources panel, select Tablestore for Associated cloud products and select a Tablestore instance.
    3. Click OK.

      On the Group Resources page of the application group, you can view the information about the cloud service and instance that you added.

  4. On the Group Resources page of the application group, click the Back icon to return to the Application Groups page.

    On the Application Group tab, you can view the application group that you created.

Step 2: Create an alert template and apply the template to the group

  1. In the left-side navigation pane, choose Alerts > Alert Templates.
  2. On the Alert Templates page, click Create Alert Template.
  3. In the Create/Modify Alert Template panel, configure the parameters of the template.
    1. Enter a template name and select Tablestore for Select Alibaba Cloud Service.
    2. Click Add Rule, configure the parameters on the Metric Template tab, and click OK. The following table describes the parameters.

      You can configure parameters only on the Metric Template tab for Tablestore. You can add multiple rules based on your business requirements.

      Parameter Description
      Rule Name The name of the threshold-triggered alert rule.
      Metric Type The metric type of the threshold-triggered alert rule. Valid values:
      • Single indicator: The alert rule applies to only one metric.
      • Multiple indicators: The alert rule applies to multiple metrics.
      Metric Name The name of the metric that you want to monitor. For information about how to obtain the metrics for an Alibaba Cloud service, see Appendix 1: Metrics.
      Note This parameter is displayed only if you set the Metric Type parameter to Single indicator.
      Threshold and Alert Level The conditions, alert threshold, and alert level of the alert rule.

      You can configure alerts of different alert levels. You can specify an alert threshold for each alert level. If the value of a metric reaches an alert threshold, an alert of the corresponding level is triggered. The method that are used by CloudMonitor to send alert notifications vary based on alert levels.

      Note This parameter is displayed only if you set the Metric Type parameter to Single indicator.
      Alert Level The alert level and the methods that are used to send alert notifications. Valid value:

      Info: Email + DingTalk

      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators.
      Metric Type The method that you want to use to specify metrics and conditions. Valid values:
      • Standard creation: Select multiple metrics and specify conditions.
      • Expression creation: Enter an expression to specify multiple metrics and conditions.
      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators.
      Multi-indicator alarm description The alert rule that is created for multiple metrics.
      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators and the second Metric Type parameter to Standard creation.
      Chart Preview The chart preview for multiple metrics.

      By default, Chart Preview is turned off.

      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators and the second Metric Type parameter to Standard creation.
      Multi-indicator relationship The relationship between multiple metrics. Valid values:
      • Alarm when all indicators meet the conditions (&&)
      • Alarm if one of the conditions is met (| |)
      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators and the second Metric Type parameter to Standard creation.
      Multi-indicator alarm expression The expression that is used to specify multiple metrics and conditions.
      Note This parameter is displayed only if you set the Metric Type parameter to Multiple indicators and the second Metric Type parameter to Expression creation.
      The number of times the alarm needs to meet the threshold The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. Valid values: Continuous 1 Count Period, Continuous 3 Count Period, Continuous 5 Count Period, Continuous 10 Count Period, Continuous 15 Count Period, Continuous 30 Count Period, Continuous 60 Count Period, Continuous 70 Count Period, Continuous 90 Count Period, Continuous 120 Count Period, and Continuous 180 Count Period.
      No data alarm processing method The method that is used to handle alerts when no monitoring data is found. Default value: Do not do anything. Valid values:
      • Do not do anything
      • Send no data alarm
      • Treated as normal
    3. Click OK.
  4. Apply the alert template to the application group.
    1. In the Alert Template Created/Modified message, click Confirm.
      Note If you click Cancel, the alert template is created but not applied to the application group. For information about how to apply an alert template to an application group, see Apply alert templates to application groups.
    2. In the Apply Templates to Groups dialog box, select one or more application groups, configure the Mute For, Effective From, Alert Callback, and Priority parameters, and click Confirm.
    3. In the Apply Templates to Groups message, click Confirm.

Create an alert rule for a Tablestore instance

If you want to monitor the usage of a Tablestore instance, you can create an alert rule for the instance.

  1. In the left-side navigation pane, choose Alerts > Alert Rules.
  2. On the Alert Rules page, click Create Alert Rule.
  3. In the Create Alert Rule panel, configure the parameters and click OK. The following table describes the parameters.
    Parameter Description
    Product The name of the Alibaba Cloud service that can be monitored by CloudMonitor. Example: RDS-DB.
    Resource Range The range of the resources to which the alert rule is applied. Valid values:
    • All Resources: The alert rule applies to all resources of the specified cloud service.
    • Application Group: The alert rule applies to all resources in the specified application group of the specified cloud service.
    • Instances: The alert rule applies to the specified resources of the specified cloud service.
    Rule Description The content of the alert rule. The parameters in this section specify the conditions that trigger an alert. To configure the content of the alert rule, perform the following steps:
    1. Click Add Rules.
    2. In the Add Rule Description panel, specify the rule name, metric type, metrics, thresholds, and alert levels.
    3. Click OK.
    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: 5 min, 15 min, 30 min, 60 min, 3 h, 6 h, 12 h, and 24 h.
    An alert is triggered when the conditions of an alert rule are met. CloudMonitor does not resend an alert notification if the alert is triggered within the mute period. If the alert is not cleared after the mute period ends, CloudMonitor resends alert notifications.
    Note You can click Advanced settings to set this parameter.
    Effective Time The period during which the alert rules are effective. CloudMonitor monitors the metrics and generates alerts only if the alert rules are effective.
    Note You can click Advanced settings to set this parameter.
    Alert Contact Group The alert contact group to which alert notifications are sent.

    The alert notifications of the application group are sent to the alert contacts that belong to the alert contact group. An alert contact group can contain one or more alert contacts.

    For more information about how to create an alert contact and an alert contact group, see Create an alert contact or alert contact group.

    Alert Callback The callback URL that can be accessed over the Internet. CloudMonitor sends a POST request to push an alert notification to the specified callback URL. Only HTTP requests are supported. For more information about how to configure alert callbacks, see Use the alert callback feature to send notifications about threshold-triggered alerts.
    Auto Scaling If you turn on Auto Scaling and an alert is triggered, the specified scaling rule is enabled. You must set the Region, ESS Group, and ESS Rule parameters.
    Log Service If you turn on Log Service and an alert is triggered, the alert information is written to the specified Logstore in Log Service. You must set the Region, ProjectName, and Logstore parameters.

    For information about how to create a project and a Logstore, see Getting Started.

    Message Service - topic If you turn on Message Service - topic and an alert is triggered, the alert information is written to the specified topic in Message Service (MNS). You must set the Region and topicName parameters.

    For information about how to create a topic, see Create a topic.

    No data alarm processing method The method that is used to handle alerts when no monitoring data is found. Default value: Do not do anything. Valid values:
    • Do not do anything
    • Send no data alarm
    • Treated as normal