Alarm Rules

Overview

Viewing Alarm Rules

  1. Log in to the GaussDB(DWS) management console.
  2. In the navigation pane on the left, choose Alarms.
  3. Click View Alarm Rule in the upper left corner. On the page that is displayed, you can see the threshold alarm rules of database cluster monitoring metrics, as shown in the following figure.

Modifying an Alarm Rule

  1. Log in to the GaussDB(DWS) management console.
  2. In the navigation pane on the left, click Alarms.
  3. Click View Alarm Rule in the upper left corner.
  4. On the Alarm Rules page that is displayed, click Modify in the Operation column of the target alarm rule.

    • Alarm Rule
    • Description
    • Associated Cluster: From the drop-down list, select the current tenant's clusters to which the alarm rule applies.
    • Triggered Policies
      • Independent: Alarm policies are triggered independently of each other.
      • Priority: Alarm policies are triggered by priority. Policies of a lower priority will be automatically triggered after those of a higher priority.
    • Alarm Policy
      • Metric: GaussDB(DWS) monitoring metric, which is the data source used by the alarm engine for threshold determination.
      • Trigger: calculation rule for threshold determination of a monitoring metric. Select the average value within a period of time of a metric to reduce the probability of alarm oscillation.
      • Constraint: suppresses the repeated triggering and clearance of alarms of the same type within the specified period.
      • Alarm Severity: includes Urgent, Important, Minor, and Prompt.

    You can modify only some items of the default rules (associated cluster, alarm policy threshold, time period, and alarm constraint). User-defined rules support modification of all items.

  5. Confirm the information and click OK.

Creating an Alarm Rule

  1. Log in to the GaussDB(DWS) management console.
  2. In the navigation pane on the left, click Alarms.
  3. Click View Alarm Rule in the upper left corner.
  4. Click Create Alarm Rule in the upper right corner. You can configure items, such as the alarm rule name, rule description, clusters associated with the rule, and alarm policy.

    • Alarm Rule
    • Description
    • Associated Cluster: From the drop-down list, select the current tenant's clusters to which the alarm rule applies.
    • Triggered Policies
      • Independent: Alarm policies are triggered independently of each other.
      • Priority: Alarm policies are triggered by priority. Policies of a lower priority will be automatically triggered after those of a higher priority.
    • Alarm Policy
      • Metric: GaussDB(DWS) monitoring metric, which is the data source used by the alarm engine for threshold determination.
      • Alarm Object: databases in the selected cluster and schemas in the selected databases.
      • Trigger: calculation rule for threshold determination of a monitoring metric. Select the average value within a period of time of a metric to reduce the probability of alarm oscillation.
      • Constraint: suppresses the repeated triggering and clearance of alarms of the same type within the specified period.
      • Alarm Severity: includes Urgent, Important, Minor, and Prompt.
        Figure 1 Creating an alarm rule

        Currently, only alarm rules of schema usage metrics can be created on GaussDB(DWS).