Updated on 2022-09-05 GMT+08:00

Setting DMS Alarm Rules

Scenario

Setting DMSalarm rules enables you to be informed of the running status of your DMS services at any time by customizing the monitored objects and notification policies.

This section describes how to set DMS alarm rules, including alarm rule names, monitored objects, metrics, alarm thresholds, monitoring intervals, and notifications.

Prerequisites

  • To set alarm rules for queues, ensure that you have available queues.

Procedure

The following describes how to configure an alarm rule for the Accumulated Messages (dead_avail_messages) metric of a consumer group.

  1. Log in to the management console.
  2. Click in the upper left corner to select a region and a project.
  3. Click Service List, and choose Application > Distributed Message Service to open the DMS console.
  4. In the navigation pane, choose Queue Manager.
  5. Click a queue name. On the queue details page that is displayed, click More > View Metric in the same row as a consumer group.

    You are redirected to the Cloud Eye console page displaying metrics of the selected consumer group.

  6. Locate the Accumulated Messages metric. Hover over the metric and click to create an alarm rule for the metric.

    The Create Alarm Rule page is displayed.

  7. Specify the alarm details.

    1. Set the alarm name and description.
    2. Specify the alarm policy and alarm severity.

      For example, an alarm can be triggered and notifications can be sent every five minutes if the average number of accumulated messages exceeds the preset value for two consecutive periods and no actions are taken to handle the exception. Set these parameters based on your requirements.

    3. Set the alarm notification configurations. If you enable Alarm Notification, set the validity period, notification object, and trigger condition.
    4. Click Create.

      For more information about creating alarm rules, see Creating an Alarm Rule.