AWS MQ ActiveMQ
Collect AWS MQ ActiveMQ monitoring data.
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 Guance Integrations - Extensions - Hosted Func: all prerequisites are installed automatically. Continue with script installation.
To deploy Func yourself, see Self-hosted Func.
Enable the Script¶
Prepare AWS AK in advance and authorize access as described in Permissions.
Activate Script in DataFlux Func (Automata)¶
- 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
- On the cloud account details page, click [Integrations]. Under
Not InstalledfindAWS MQ ActiveMQ, click [Install], and complete installation in the dialog.
Activate Script Manually¶
- Sign in to the Func console, click [Script Market], openGuanceScript Market, and search for
integration_aws_mq - Click 【Install】 and enter AWS AK ID, AK Secret, and the account name.
- Click [Deploy Startup Script]. The system creates the
Startupscript set and configures the corresponding startup script automatically - Once enabled, view the trigger under Management / Automatic Trigger Configuration. Click [Run] to execute immediately without waiting for the schedule. After a short wait, view the execution records and logs
For manual deployment, use the startup script generated by the AWS MQ ActiveMQ cloud collector.
Verification¶
- Under [Management / Automatic Trigger Configuration], confirm that an automatic trigger configuration exists for the task, and check the task records and logs for errors.
- In Guance, check [Infrastructure / Custom] for asset information.
- In Guance, check [Metrics] for the corresponding monitoring data.
Metrics¶
The metric set is aws_AWS/AmazonMQ。
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
CpuUtilization_Average |
Percentage of allocated Amazon EC2 compute units currently used by the broker(Average) | Broker |
percent |
HeapUsage_Average |
JVM heap memory utilization(Average) | Broker |
percent |
JournalFilesForFastRecovery_Average |
Journal files to replay for recovery after a normal shutdown(Average) | Broker |
Count |
JournalFilesForFullRecovery_Average |
Journal files to replay for recovery after an abnormal shutdown(Average) | Broker |
Count |
NetworkIn_Average |
Data received by the broker(Average) | Broker |
B |
NetworkOut_Average |
Data sent by the broker(Average) | Broker |
B |
StorePercentUsage_Average |
Persistent storage utilization(Average) | Broker |
percent |
TotalConsumerCount_Average |
Total consumers across all broker destinations(Average) | Broker |
Count |
ConsumerCount_Average |
Consumers for the destination(Average) | Broker, Queue or Broker, Topic |
Count |
ConsumerCount_Maximum |
Consumers for the destination(Maximum) | Broker, Queue or Broker, Topic |
Count |
DequeueCount_Average |
Messages acknowledged by consumers per minute(Average) | Broker, Queue or Broker, Topic |
Count |
DispatchCount_Average |
Messages dispatched to consumers per minute(Average) | Broker, Queue or Broker, Topic |
Count |
EnqueueCount_Average |
Messages sent to the destination per minute(Average) | Broker, Queue or Broker, Topic |
Count |
EnqueueTime_Average |
Latency from message arrival at the broker to delivery to consumers(Average) | Broker, Queue or Broker, Topic |
ms |
ExpiredCount_Average |
Expired undelivered messages per minute(Average) | Broker, Queue or Broker, Topic |
Count |
MemoryUsage_Average |
Memory utilization for the destination(Average) | Broker, Queue or Broker, Topic |
percent |
ProducerCount_Average |
Producers for the destination(Average) | Broker, Queue or Broker, Topic |
Count |
ProducerCount_Maximum |
Producers for the destination(Maximum) | Broker, Queue or Broker, Topic |
Count |
QueueSize_Average |
Messages in the queue(Average) | Broker, Queue |
Count |