AWS MQ for RabbitMQ¶
AWS MQ for RabbitMQ (for RabbitMQ) supports industry-standard APIs and protocols, manages message brokers and their maintenance, and automatically provides infrastructure for high availability.
Configuration¶
Permissions¶
For AWS cloud collection permissions, see AWS cloud integration role authorization. The read-only permissions required by this integration are listed below.
mq:ListBrokers: Get Amazon MQ message broker list and information.cloudwatch:ListMetrics: Discover CloudWatch monitoring metrics and dimensions.cloudwatch:GetMetricData: Read in batches: CloudWatch monitoring metric data.
Install Func¶
We recommend enabling hosted Func under Integration - Extensions in Guance. All prerequisites are installed automatically; continue with the script installation.
If deploying Func manually, refer to Manual Deployment of Func
Install Script¶
Prepare AWS AK in advance and authorize access as described in Permissions.
Activate Scripts in Hosted Func¶
- Log in to the Guance console
- Click the 【Integration】 menu and select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
- Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
- Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
- Click 【Integration】 on the cloud account details page, find
AWS MQ for RabbitMQin theNot Installedlist and click 【Install】 to open the installation form.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, open the Guance script market and search for
integration_aws_mq. -
Click 【Install】, then enter the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】 to create the
Startupscript set and configure the corresponding startup scripts automatically. -
After enabling the script, open 【Management / Automatic Trigger Configuration】 to view its automatic trigger configuration. Click 【Execute】 to run it immediately without waiting for the scheduled time. After a short wait, review the task records and logs.
Verification¶
- Under 【Management / Automatic Trigger Configuration】, confirm that the task has an automatic trigger configuration. Review its task records and logs for errors.
- In Guance, check [Infrastructure / Custom] for asset information.
- In Guance, check 【Metrics】 for the corresponding monitoring data.
Metrics¶
After configuring Amazon CloudWatch, the default Measurement is as follows. More Metrics can be collected through configuration:
AWS MQ for RabbitMQ metric details
AWS MQ for RabbitMQ¶
| Metric Name | Unit | Description |
|---|---|---|
| ExchangeCount | Count | Total exchanges configured on the broker. |
| QueueCount | Count | Total queues configured on the broker. |
| ConnectionCount | Count | Total connections established on the broker. |
| ChannelCount | Count | Total channels established on the broker. |
| ConsumerCount | Count | Total consumers connected to the broker. |
| MessageCount | Count | Total messages in the queue, including ready and unacknowledged messages on the broker. |
| MessageReadyCount | Count | Total ready messages in the queue. |
| MessageUnacknowledgedCount | Count | Total unacknowledged messages in the queue. |
| PublishRate | Count | Rate of messages published to the broker, expressed as messages per second at sampling time. |
| ConfirmRate | Count | Rate at which the RabbitMQ server acknowledges published messages. Compare it with PublishRate to understand broker performance. The value represents messages per second at sampling time. |
| AckRate | Count | Rate of consumer acknowledgments, expressed as messages per second at sampling time. |
| SystemCpuUtilization | Percentage | Percentage of allocated Amazon EC2 compute units currently used by the broker. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. |
| RabbitMQMemLimit | Bytes | RAM limit of the RabbitMQ broker. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. |
| RabbitMQMemUsed | Bytes | RAM used by the RabbitMQ broker. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. |
| RabbitMQDiskFreeLimit | Bytes | Disk limit of the RabbitMQ broker. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. The metric varies with instance size. For details, see AWS MQ for RabbitMQ instance types. |
| RabbitMQDiskFree | Bytes | Total free disk space on the RabbitMQ broker. When disk usage exceeds its limit, the cluster blocks all producer connections. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. |
| RabbitMQFdUsed | Count | File descriptors in use. For clusters, this is the sum of the metric values across all three RabbitMQ nodes. |
RabbitMQIOReadAverageTime |
Count | Average time in milliseconds for a RabbitMQ read operation. This value is proportional to message size. |
RabbitMQIOWriteAverageTime |
Count | Average time in milliseconds for a RabbitMQ write operation. This value is proportional to message size. |
NetworkIn |
Bytes | Data received by all network interfaces of the broker instance. |
NetworkOut |
Bytes | Data sent by all network interfaces of the broker instance. |