Alibaba Cloud RabbitMQ
Metrics for Alibaba Cloud RabbitMQ include instances, vHosts, Queues, VHosts, etc.
Configuration¶
Install Func¶
It is recommended to enable TrueWatch Integration - Extensions - DataFlux Func (Automata)
If deploying Func manually, refer to Manual Deployment of Func
Enable Script¶
Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can grant the global read-only permission
ReadOnlyAccess
)
Enable Script for DataFlux Func (Automata)¶
- Log in to the TrueWatch console
- Click on the 【Integration】 menu, then select 【Cloud Account Management】
- Click on 【Add Cloud Account】, choose 【Alibaba Cloud】, and fill in the required information on the interface. If you have already configured the cloud account information before, you can skip this step
- Click on 【Test】, and if the test is successful, click on 【Save】. If the test fails, please check the relevant configuration information and retest
- In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page
- Click on the 【Integration】 button on the cloud account details page. Under the
Not Installed
list, findAlibaba Cloud RabbitMQ
, and click on the 【Install】 button. A pop-up installation interface will appear, and you can proceed with the installation.
Manually Enable Script¶
-
Log in to the Func console, click on 【Script Market】, and enter the TrueWatch script market. Search for:
integration_alibabacloud_rabbitmq
-
Click on 【Install】, then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click on 【Deploy Startup Script】, and the system will automatically create a
Startup
script set and configure the corresponding startup scripts. -
After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click on 【Execute】 to immediately execute it once without waiting for the scheduled time. After a short while, you can check the execution task records and corresponding logs.
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration. You can also check the corresponding task records and logs to see if there are any exceptions
- In TrueWatch, check if asset information exists in 「Infrastructure / Custom」
- In TrueWatch, check if there is corresponding monitoring data in 「Metrics」
Metrics¶
After configuring Alibaba Cloud RabbitMQ collection, the default Measurement is as follows. You can collect more metrics through configuration Cloud Monitor Metrics Query
Note: You need to install the monitoring plugin in the Aliyun RabbitMQ console
Metric Name | Description | Unit |
---|---|---|
ExchangeTPSIn | Exchange message inflow rate per second | count/s |
ExchangeTPSOut | Exchange message outflow rate per second | count/s |
InstanceChannels | Number of Channels in Instance (deprecated) | count |
InstanceChannelsNew | Number of Channels | count |
InstanceConnections | Number of Instance connections | count |
InstanceConsumers | Number of Consumers | count |
InstanceMaxTpsInMinute | Peak API request rate of the instance (Max value per minute) | count/s |
InstanceMessageInput | Number of messages produced by the instance | count |
InstanceMessageOutput | Number of messages consumed by the instance | count |
InstanceQueueMessageAccumulation | Accumulated messages in the instance Queue (recommended) | count |
InstanceQueueMessageInput | Number of messages produced by the instance Queue (recommended) | count |
InstanceQueueMessageOutput | Number of messages consumed by the instance Queue (recommended) | count |
InstanceTPSIn | Instance message inflow rate per second | count/s |
InstanceTPSOut | Instance message outflow rate per second | count/s |
InstanceVhostChannels | Number of Channels in VHost | count |
InstanceVhostConsumers | Number of Consumers in VHost | count |
InstanceVhostMessageInput | Number of messages produced by the instance Vhost | count |
InstanceVhostMessageOutput | Number of messages consumed by the instance Vhost | count |
InstanceVhostQueueConsumers | Number of Consumers in Queue | count |
InstanceVhostQueueMessageAccum | Accumulated messages in Queue | count |
InstanceVhostQueueMessageInput | Number of messages produced by Queue | count |
InstanceVhostQueueMessageOutput | Number of messages consumed by Queue | count |
QueueTPSIn | Queue message inflow rate per second | count/s |
QueueTPSOut | Queue message outflow rate per second | count/s |
VHostTPSIn | VHost message inflow rate per second | count/s |
VHostTPSOut | VHost message outflow rate per second | count/s |
VhostChannels | Number of Channels in VHost | count |
VhostConnections | Number of Connections in VHost | count |
Object¶
The collected Alibaba Cloud RabbitMQ object data structure can be seen in 「Infrastructure - Custom」
{
"fields": {
"ExpireTime": 4901097600000,
"MQTags": "[]",
"MaxEipTps": 128,
"MaxQueue": 2000,
"MaxTps": 2000,
"MaxVhost": 200,
"OrderCreateTime": 1745389085000,
"message": ""
},
"measurement": "aliyun_rabbitmq",
"tags": {
"AutoRenewInstance": "False",
"InstanceId": "rabbitmq-cn-q9w48xxx",
"InstanceName": "liurui_rabbitmq",
"InstanceType": "PROVISIONED_AND_SERVERLESS",
"OrderType": "POST_PAID",
"PrivateEndpoint": "rabbitmq-cn-xxx.mq.amqp.aliyuncs.com",
"PublicEndpoint": "rabbitmq-cn-xxx.mq.amqp.aliyuncs.com",
"RegionId": "cn-hangzhou",
"Status": "SERVING",
"SupportEIP": "True",
"name": "rabbitmq-cn-q9w48xxx"
}
}