Configuring Message Accumulation Monitoring
Overview
Unprocessed messages accumulate if the client's consumption is slower than the server's sending. Accumulated messages cannot be consumed in time.
Configure alarm rules so that you will be notified when the number of accumulated messages in a consumer group exceeds the threshold. The procedure described in this section can also be applied to setting alarm rules for other metrics.
Prerequisites
You have bought a RocketMQ instance, created a topic, and there are available messages.
Procedure
The screenshots in this section use the RocketMQ 5.x basic edition as an example.
- Log in to the DMS for RocketMQ console and click the desired instance.
- In the left navigation pane, choose Monitoring And Alarm > Monitoring.
- On the By Consumer Group tab page, select the consumer group for which you want to create an alarm rule.
Figure 1 Selecting a consumer group
- Hover the mouse pointer over Consumer Available Messages and click .
Figure 2 Consumer available messages chart
- On the Create Alarm Rule page, configure the basic information of the alarm rule. The alarm name can contain only letters, digits, underscores (_), and hyphens (-).
Figure 3 Configuring the basic information of the alarm rule
- Configure the alarm policy.
Alarm policy: A major alarm is generated if the number of raw data records is greater than or equal to 10,000 for one consecutive time. The alarm is notified once a day.
Figure 4 Configuring the alarm policy
- Configure the alarm notification.
Figure 5 Configuring the alarm notification
- Alarm Notification: Enable this option.
- Notification Object: Select a cloud account contact or a created alarm notification topic. An alarm notification topic contains the mobile number or email address receiving the notification.
If no alarm notification topics are available, click Create an SMN topic. On the SMN console, create a topic and add a subscription. After the alarm notification topic is created, go back to the Create Alarm Rule page, click to make the created topic available for selection.
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.
Figure 6 Creating an alarm notification topic
Figure 7 Adding a subscription
- Validity Period: Cloud Eye sends notifications only within the validity period specified in the alarm rule.
- Trigger Condition: condition for triggering an alarm notification. Generated alarm and Cleared alarm are available.
- Configure the enterprise project and tag.
Figure 8 Configuring the enterprise project and tag.
- Enterprise Project: enterprise project with which the alarm rule is associated. Only users who have the permissions of the enterprise project can view and manage the alarm rule.
- Tag: tags are used to identify cloud resources. When you have many cloud resources of the same type, you can use tags to classify cloud resources by dimension (for example, usage, owner, or environment).
- Click Create.
After the alarm rule is created, you can view it on the Alarm Management > Alarm Rules page.
Feedback
Was this page helpful?
Provide feedbackThank 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