Help Center/ Distributed Message Service for RabbitMQ/ Best Practices/ Configuring Message Accumulation Monitoring
Updated on 2026-06-04 GMT+08:00

Configuring Message Accumulation Monitoring

Scenario

Unprocessed messages accumulate if the client's consumption is slower than the server's sending. If messages are not consumed in a timely manner, messages will be accumulated. If there are too many accumulated messages, the memory usage will be high and messages cannot be sent.

If you want to receive SMS or email notifications when Queue Available Messages exceeds the threshold, configure alarm notifications by referring to this section. You can also configure alarm notifications for other monitoring metrics of DMS for RabbitMQ by referring to this section.

Prerequisites

Configuring Alarm Rules and Notifications for Message Accumulation

  1. Log in to the RabbitMQ console.
  2. Click the name of the desired instance. The instance details page is displayed.
  3. In the navigation pane on the left, choose Monitoring > Monitoring Details.
  4. On the By Queue tab page, select the queue for which you want to configure alarm notifications from the By Queue drop-down list.

    Figure 1 Selecting the queue for which you want to configure alarm notifications

  5. Click the plus sign (+) in the upper right corner of the Queue Available Messages card to create an alarm rule.

    Figure 2 Creating an alarm rule

  6. On the Create Alarm Rule page, enter Name. Only letters, digits, underscores (_), and hyphens (-) are allowed.

    Figure 3 Setting the alarm rule name

  7. On the Create Alarm Rule page, set an alarm policy.

    If the number of queue available messages is greater than or equal to 10,000 for 1 time, a major alarm will be generated and an alarm notification will be sent on a daily basis. The alarm threshold can be adjusted as required.
    Figure 4 Setting an alarm policy

  8. Enable Alarm Notifications and set Notified By to Notification policies.

    After an alarm notification is triggered, fees will be generated (vary depending on the length of the alarm content and the frequency of alarm notifications). For details about the billing, see Pricing Details.

  9. Click Create Notification Policy and set parameters by referring to Table 1.

    Figure 5 Creating a notification policy
    Table 1 Notification policy parameters

    Parameter

    Description

    Language

    Select a language for the notification policy.

    Name

    Set the name of the notification policy. Max.: 255 characters.

    Alarm Severity

    Select Major.

    Notification Cause

    Select Alarm triggered so that a notification will be sent when an alarm rule is triggered.

    Recipients

    Select Topic subscriptions and select notification topics. If no topic is available, click Create. On the SMN console, create a topic and add subscriptions. After the topic is created, go back to the Create Alarm Rule page, click under Recipients, and then select the created topic.

    NOTE:

    After the subscription is added, the corresponding subscription endpoint will receive a subscription notification. You need to confirm the subscription so that the endpoint can receive alarm notifications.

    Days

    Retain the default settings. That is, if an alarm is triggered, a notification will be sent on a daily basis.

    Notification Window

    Retain the default settings. Notifications are sent only within the notification window.

    Notification Templates

    Select Default.

  10. Click OK. The Create Alarm Rule page is displayed.
  11. Click under Notification Policies and select the created policy from the drop-down list.

    Figure 6 Setting a notification policy

  12. Click Create.

    After the alarm rule is created, you can view it on the Alarm Management > Alarm Rules page.

    Figure 7 Viewing the created alarm rule