Skip to content

Alibaba Cloud RabbitMQ

The Metrics of Alibaba Cloud RabbitMQ include instances, vHosts, Queues, VHosts, etc.

Configuration

Install Func

It is recommended to enable Guance integration - extension - hosted Func.

If you deploy Func by yourself, please 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 Version Enable Script

  1. Log in to Guance Console
  2. Click on the 【Integration】 menu, select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If you have already configured the cloud account information, ignore this step.
  4. Click 【Test】, if the test is successful, click 【Save】. If the test fails, check whether the relevant configuration information is correct and retest.
  5. In the 【Cloud Account Management】 list, you can see the added cloud accounts. Click the corresponding cloud account to enter the details page.
  6. On the cloud account details page, click the 【Integration】 button. Under the Not Installed list, find Alibaba Cloud RabbitMQ, click the 【Install】 button, and install it through the installation interface.

Manual Enable Script

  1. Log in to the Func Console, click 【Script Market】, enter the official script market, and search for guance_aliyun_rabbitmq
  2. After clicking 【Install】, input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
  3. Click 【Deploy Startup Script】, the system will automatically create a Startup script set and automatically configure the corresponding startup script.
  4. 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 for a moment, you can view the execution task records and corresponding logs.

We default collect some configurations, for more details see the Metrics section.

Configure Custom Cloud Object Metrics

Verification

  1. Confirm in 「Management / Automatic Trigger Configuration」 whether the corresponding task has an automatic trigger configuration. You can also check the corresponding task records and logs for any abnormalities.
  2. In Guance, 「Infrastructure / Custom」 check if there is asset information.
  3. In Guance, 「Metrics」 check if there are corresponding monitoring data.

Metrics

After configuring the collection of Alibaba Cloud-RabbitMQ, the default metric sets are as follows. You can collect more metrics through configuration Cloud Monitoring Metric Query

Note: The monitoring plugin needs to be installed in the Aliyun RabbitMQ Console.

Metric Name Description Unit
ExchangeTPSIn Number of messages flowing into Exchange per second count/s
ExchangeTPSOut Number of messages flowing out of Exchange per second count/s
InstanceChannels Number of Channels for Instance (Deprecated) count
InstanceChannelsNew Number of channels count
InstanceConnections Number of instance connections count
InstanceConsumers Number of consumers count
InstanceMaxTpsInMinute Peak rate of instance API requests (Max value per minute) count/s
InstanceMessageInput Number of instance message productions count
InstanceMessageOutput Number of instance message consumptions count
InstanceQueueMessageAccumulation Accumulated amount of instance Queue messages (Recommended) count
InstanceQueueMessageInput Number of instance Queue message productions (Recommended) count
InstanceQueueMessageOutput Number of instance Queue message consumptions (Recommended) count
InstanceTPSIn Number of messages flowing into Instance per second count/s
InstanceTPSOut Number of messages flowing out of Instance per second count/s
InstanceVhostChannels Number of Channels for VHost count
InstanceVhostConsumers Number of consumers for VHost count
InstanceVhostMessageInput Number of message productions for VHost count
InstanceVhostMessageOutput Number of message consumptions for VHost count
InstanceVhostQueueConsumers Number of Queue consumers count
InstanceVhostQueueMessageAccum Accumulated amount of Queue messages count
InstanceVhostQueueMessageInput Number of Queue message productions count
InstanceVhostQueueMessageOutput Number of Queue message consumptions count
QueueTPSIn Number of messages flowing into Queue per second count/s
QueueTPSOut Number of messages flowing out of Queue per second count/s
VHostTPSIn Number of messages flowing into VHost per second count/s
VHostTPSOut Number of messages flowing out of VHost per second count/s
VhostChannels Number of channels for VHost count
VhostConnections Number of connections for VHost count

Objects

The collected Alibaba Cloud RabbitMQ object data structure can be seen from 「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"
    }
}

Feedback

Is this page helpful? ×