Updated on 2024-04-29 GMT+08:00

Setting Alarm Rules

You can set CloudTable ClickHouse alarm rules to customize the monitored objects and notification policies. Then, you can learn about ClickHouse running status in a timely manner. The ClickHouse alarm rules include alarm rule name, instance, metric, threshold, monitoring interval and whether to send notification. This section describes how to set alarm rules.

Creating an Alarm Rule for a ClickHouse Cluster

  1. Log in to the CloudTable console.
  2. In the navigation tree, click Cluster Management.
  3. In the upper right corner of the cluster list, enter the name of a cluster in the search box and click .
  4. In the cluster list, locate the row where the target cluster resides and click More > View Metric in the Operation column. The CES console is displayed.

    The status of the cluster whose monitoring information you want to view must be In service.

    Figure 1 Viewing the monitoring metrics

  5. Click Create Alarm Rule to add an alarm rule.

    1. Enter an alarm rule name and description.
      Figure 2 Configuring an alarm rule name
    2. Specify the monitoring scope.
      Figure 3 Specifying the monitored objects
      Table 1 Parameters

      Parameter

      Description

      Example Value

      Alarm Type

      Default instance or the selected cluster.

      Metric

      Resource Type

      Name of the cloud service resource for which the alarm rule is configured.

      CloudTable Service

      Dimension

      Metric dimension of the alarm rule. Only the Compute Units option is supported.

      Computing Units

      Monitoring Scope

      Clusters to be monitored.

      Specific resources

      Monitored Objects

      Nodes to be monitored.

      -

    3. Configure the alarm policies as prompted.
      Figure 4 Configuring the alarm policy
      Table 2 Parameters for configuring an alarm policy

      Parameter

      Description

      Example Value

      Method

      Select Use existing template or Configure manually as required.

      • If no alarm template is available, set Method to Configure manually and configure related parameters to create an alarm rule.
      • If you have available alarm rule templates, set Method to Use existing template or Associate template, so that you can use a template to quickly create alarm rules.

      Configure manually

      Template

      This parameter is valid only when Use existing template is selected.

      Select the template to be imported. If no alarm template is available, click Create Custom Template to create one that meets your requirements.

      Use existing template

      Alarm Policy

      This parameter is valid only when Configure manually is selected.

      For details about the monitoring metrics supported by CloudTable ClickHouse, see ClickHouse Cluster Supported Metrics.

      -

      Alarm Severity

      Severity of an alarm. Valid values are Critical, Major, Minor, and Informational.

      Major

    4. Configure the alarm notification parameters as prompted.
      Figure 5 Alarm notification
      Table 3 Alarm notification parameters

      Parameter

      Description

      Configuration

      Alarm Notification

      Whether to notify users when alarms are triggered. Notifications can be sent by emails, text messages, or HTTP/HTTPS requests.

      If this function is enabled (recommended), notifications will be sent. Otherwise, no notification is sent.

      Enabled

      Notification Recipient

      Notification group or topic subscription.

      -

      Notification Group/Object

      • Notification group that needs to send alarm notifications.

        If you enable Send Notification, you need to select an existing notification group. If you have not created a notification group, click Create Notification Group to access the CES page to create one.

      • Topic to which the alarm notification is to be sent.

        If you enable Notification, you need to select an existing topic. If you have not created a topic, click Create an SMN Topic to go to the SMN management console to create a topic.

      -

      Validity Period

      CES sends notifications only within the validity period specified in the alarm rule.

      If Validity Period is set to 00:00-23:59, CES send notifications only within 00:00-23:59.

      00:00 ~ 23:59

      Trigger Condition

      Condition for triggering an alarm notification.

      Select all options.

    5. Configure advanced settings.
      Figure 6 Configuring advanced settings
      Table 4 Advanced configuration parameters

      Parameter

      Description

      Enterprise Project

      You can group related cloud resources (for example, resources used for the same purpose) and manage them by enterprise project.

      Tag

      It is recommended that you use TMS's predefined tag function to add the same tag to different cloud resources.

  6. After the configuration is complete, click Next. After the alarm rule is created, if the metric data reaches the specified threshold, CES will immediately inform you that an exception has occurred.

    If you want to set an alarm rule for a single metric, go to the page for viewing monitoring information.

    • View the monitoring metrics and click the metric graph.
    • Click + in the upper right corner.
    • Set the rule on the page for setting alarm rules.