Alibaba Cloud RocketMQ4¶
The displayed Metrics for Alibaba Cloud RocketMQ 4.0 include message throughput, latency, reliability, and horizontal scalability.
Configuration¶
Install Func¶
It is recommended to enable Guance integration - extension - hosted Func.
If you deploy Func yourself, refer to Self-deployed Func
Enable Script¶
Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can directly grant global read-only permission
ReadOnlyAccess
)
Hosted Enable Script¶
- Log in to the Guance console.
- Click on the 【Integration】 menu, select 【Cloud Account Management】.
- Click 【Add Cloud Account】, choose 【Alibaba Cloud】, fill in the required information on the interface; if you have already configured the cloud account information, ignore this step.
- Click 【Test】, after a successful test, click 【Save】; if the test fails, check whether the related configuration information is correct and retest.
- In the 【Cloud Account Management】 list, you can see the added cloud accounts, click on the corresponding cloud account to enter the details page.
- Click the 【Integration】 button on the cloud account details page. In the
Not Installed
list, findAlibaba Cloud RocketMQ4
, click the 【Install】 button, and install it via the installation interface that pops up.
Manual Enable Script¶
-
Log in to the Func console, click 【Script Market】, enter the official script market, search:
guance_aliyun_rocketmq4
-
After clicking 【Install】, input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create a
Startup
script set and automatically configure the corresponding startup scripts. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.
We default collect some configurations, see the Metrics section for details.
Configure Custom Cloud Object Metrics
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding tasks have the corresponding automatic trigger configuration. You can also check the corresponding task records and logs to ensure there are no abnormalities.
- In Guance, 「Infrastructure / Custom」, check if there is any asset information.
- In Guance, 「Metrics」, check if there are corresponding monitoring data.
Metrics¶
After configuring Alibaba Cloud - Cloud Monitoring, the default Measurement sets are as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitoring Metrics Details
Metric Id | Metric Name | Dimensions | Statistics | Uni |
---|---|---|---|---|
ReadyMessages | Number of ready messages(Group) | account_name,InstanceName | Average,Maximum | count |
ReadyMessagesPerGidTopic | Number of ready messages(Group&Topic) | account_name,InstanceName | Average,Maximum | count |
ReceiveMessageCountPerGid | Number of messages received by consumer per minute(Group) | account_name,InstanceName | Average,Maximum | count/min |
ReceiveMessageCountPerGidTopic | Number of messages received by consumer per minute(Group&Topic) | account_name,InstanceName | Average,Maximum | count/min |
ReceiveMessageCountPerInstance | Number of messages received by consumer per minute(Instance) | account_name,InstanceName | Average,Maximum | count/min |
ReceiveMessageCountPerTopic | Number of messages received by consumer per minute(Topic) | account_name,InstanceName | Average,Maximum | count/min |
SendDLQMessageCountPerGid | Number of dead-letter messages generated per minute(Group) | account_name,InstanceName | Average,Maximum | count/min |
SendDLQMessageCountPerGidTopic | Number of dead-letter messages generated per minute(Group&Topic) | account_name,InstanceName | Average,Maximum | count/min |
SendMessageCountPerInstance | Number of messages sent by producer per minute(Instance) | account_name,InstanceName | Average,Maximum | count/min |
SendMessageCountPerTopic | Number of messages sent by producer per minute(Topic) | account_name,InstanceName | Average,Maximum | count/min |
ThrottledReceiveRequestsPerGid | Number of throttled consumption requests per minute(GroupId) | account_name,InstanceName | Average,Maximum | counts/min |
ThrottledReceiveRequestsPerGidTopic | Number of throttled consumption requests per minute(GroupId&Topic) | account_name,InstanceName | Average,Maximum | counts/min |
ThrottledReceiveRequestsPerInstance | Number of throttled consumption requests per minute(Instance) | account_name,InstanceName | Average,Maximum | counts/min |
ThrottledSendRequestsPerInstance | Number of throttled send requests per minute(Instance) | account_name,InstanceName | Average,Maximum | counts/min |
ThrottledSendRequestsPerTopic | Number of throttled send requests per minute(Topic) | account_name,InstanceName | Average,Maximum | counts/min |
Objects¶
The object data structure collected from Alibaba Cloud RocketMQ4 can be viewed in 「Infrastructure - Custom」
{
"Endpoints": "{\"HttpInternalEndpoint\": \"http://xxx.mqrest.cn-hangzhou-internal.aliyuncs.com\", \"HttpInternetEndpoint\": \"http://xxx.mqrest.cn-hangzhou.aliyuncs.com\", \"HttpInternetSecureEndpoint\": \"\", \"TcpEndpoint\": \"http://MQ_INST_xxx.cn-hangzhou.mq-vpc.aliyuncs.com:8080\", \"TcpInternetEndpoint\": \"http://MQ_INST_xxx.cn-hangzhou.mq.aliyuncs.com:80\"}",
"Remark": "xxx",
"time": 1692250532822,
"IndependentNaming": "True",
"InstanceId": "MQ_INST_xxx",
"InstanceName": "xxx",
"InstanceStatus": "5",
"__namespace": "custom_object",
"account_name": "Aliyun",
"cloud_provider": "aliyun",
"date_ns": 0,
"name": "MQ_INST_xxx",
"spInstanceType": "1",
"CreateTime": "1692163416000",
"class": "aliyun_rocketmq",
"create_time": 1692250533041,
"date": 1692250532000,
"message": "{\"CreateTime\": 1692163416000, \"Endpoints\": {\"HttpInternalEndpoint\": \"http://xxx.mqrest.cn-hangzhou-internal.aliyuncs.com\", \"HttpInternetEndpoint\": \"http://xxx.mqrest.cn-hangzhou.aliyuncs.com\", \"HttpInternetSecureEndpoint\": \"\", \"TcpEndpoint\": \"http://MQ_INST_xxx.cn-hangzhou.mq-vpc.aliyuncs.com:8080\", \"TcpInternetEndpoint\": \"http://MQ_INST_xxx.cn-hangzhou.mq.aliyuncs.com:80\"}, \"IndependentNaming\": true, \"InstanceId\": \"MQ_INST_xxx\", \"InstanceName\": \"xxx\", \"InstanceStatus\": 5, \"InstanceType\": 1, \"Remark\": \"xxx\", \"spInstanceId\": \"\", \"spInstanceType\": 1}",
"InstanceType": "1",
"__docid": "CO_54a991d1b5a86d2dc82d796110ee3476"
}