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
- You have purchased a RabbitMQ instance.
- You have created a virtual host, exchange, and queue, and bound the exchange to the queue.
- Messages have been consumed.
Configuring Alarm Rules and Notifications for Message Accumulation
- Log in to the RabbitMQ console.
- Click the name of the desired instance. The instance details page is displayed.
- In the navigation pane on the left, choose Monitoring > Monitoring Details.
- 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
- 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
- On the Create Alarm Rule page, enter Name. Only letters, digits, underscores (_), and hyphens (-) are allowed. Figure 3 Setting the alarm rule name
- 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
- 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.
- 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.
- Click OK. The Create Alarm Rule page is displayed.
- Click
under Notification Policies and select the created policy from the drop-down list. Figure 6 Setting a notification policy
- 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
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot