Operation Scenarios
TDMQ for RocketMQ allows you to monitor resources created under your account, including clusters, topics, and groups. Based on these metrics, you can analyze the cluster usage and promptly address any possible risks. Moreover, you can set alarm rules for the monitoring metrics to receive notifications in case of abnormal data, allowing you to manage risks promptly and ensure stable system performance.
Monitoring Metrics
The monitoring metrics supported by TDMQ for RocketMQ are as follows:
|
Cluster | Count | Number of Heaped Messages |
| Count/s | Billing API Production Consumption Count |
| Count/s | Billing API Consumption Throttling Count |
| Count/s | Billing API Consumption Count |
| Count/s | Billing API Production Throttling Count |
| Count/s | Billing API Production Count |
Topic | Bytes/s | Message Production Byte TPS |
| Count/s | Message Production Count TPS |
| Count | Number of Heaped Messages |
| Count/s | Billing API Consumption Throttling Count |
| Count/s | Billing API Consumption Count |
| Count/s | Billing API Production Throttling Count |
| Count/s | Billing API Production Count |
| Count/s | Number of Messages Consumed |
| Bytes/s | Bytes of Messages Consumed |
| Bytes | Topic Message Storage Size |
Group | Count | Number of Consumers |
| Count | Number of Heaped Messages |
| Count/s | Billing API Consumption Throttling Count |
| Count/s | Billing API Consumption Count |
| Count/s | Number of Messages Consumed |
| Bytes/s | Bytes of Messages Consumed |
View Monitoring Data
2. On the left sidebar, click Monitoring Dashboard and select the region and cluster to be viewed.
3. On the monitoring page, select the desired resource tab and define the time range to access the corresponding monitoring data.
|
| Click to adjust time granularity of the chart. 1 minute, 5 minutes, and 1 hour are supported. |
| Click to fetch the latest monitoring data, it supports setting 30 seconds, 1 minute, and 5 minutes as automatic refresh intervals for the monitoring data. |
| Click to copy the chart to the dashboard. For more information about the dashboard, please refer to What is Dashboard. |
Configure Alarm Rules
Create Alarm Rules
You can configure alarm rules for monitoring metrics. In the event that a monitoring metric hits the pre-set alarm threshold, TCOP can timely notify you of any exceptional circumstances through various mediums such as email, SMS, WeChat, and telephone.
1. On Monitoring page of the cluster, click the alarm icon as shown below to redirect to the TCOP Console for configuring an alarm policy. 2. On the Alarm Policy page, choose the policy type and instance for alarm setting, establish the alarm rule, and set up the alarm notification template.
Policy Type: Select TDMQ/RocketMQ5 Cluster.
Alarm Object: Select the RocketMQ instance to configure the alarm policy.
Trigger Condition: You can select Select template or Configure manually. The latter is selected by default. For more information on manual configuration, see the description below. For more information on how to create a template, please refer to Creating trigger condition template. Note:
Metric: For instance, if you select 1 minute as the statistical granularity for the "message production TPS" metric, then if the message production TPS exceeds the threshold for N consecutive data points in that minute, an alarm will be triggered.
Alarm Frequency: For instance, "Alarm once every 30 minutes" implies that if a metric surpasses the threshold during multiple consecutive statistical granularity in 30 minutes, then a single alarm will be activated. Within these 30 minutes, no further alarms will be triggered until the next 30-minute interval. If the metric consistently exceeds the threshold during this subsequent interval, another alarm will be dispatched.
Notification Template: You can select an existing notification template or create one to set the alarm receiving objects and receiving channels.
3. Click Complete to complete the configuration.
Create a new trigger condition template
2. In Configure Alarm Rules, click Select Template> Add Trigger Condition Template to access the trigger condition list page.
3. Click Create Trigger Condition Template on the trigger condition template page.
4. On the template creation page, configure the strategy type.
Policy Type: Select TDMQ/RocketMQ5.
Triggers Condition: By selecting this option, the suggested alarm policies from system will occur.
5. After ensuring all details are correct, click Save.
6. Navigate back to the alarm policy creation page and click Refresh. The newly configured alarm policy template will occur.
Was this page helpful?