Menu
Amazon CloudWatch
User Guide

Amazon MQ Metrics

Amazon MQ and Amazon CloudWatch are integrated so you can use CloudWatch to view and analyze metrics for your ActiveMQ broker and the broker's destinations (queues and topics). You can view and analyze your Amazon MQ metrics from the CloudWatch console, the AWS CLI, or the CloudWatch CLI. CloudWatch metrics for Amazon MQ are automatically polled from the broker and then pushed to CloudWatch every minute. For more information, see Monitoring Amazon MQ with CloudWatch in the Amazon MQ Developer Guide.

Note

The following statistics are valid for all of the metrics:

  • Average

  • Minimum

  • Maximum

  • Sum

The AWS/AmazonMQ namespace includes the following metrics.

Broker Metrics

Metric Unit Description
CpuUtilization Percent The percentage of allocated EC2 compute units that the broker currently uses.
HeapUsage Percent The percentage of the ActiveMQ JVM memory limit that the broker currently uses.
NetworkIn Bytes The volume of incoming traffic for the broker.
NetworkOut Bytes The volume of outgoing traffic for the broker.
TotalMessageCount Count The number of messages stored on the broker.

Dimension for Broker Metrics

Dimension Description
Broker The name of the broker.

Destination (Queue and Topic) Metrics

Important

The following metrics record only values since CloudWatch polled the metrics last:

  • EnqueueCount

  • ExpiredCount

  • DequeueCount

  • DispatchCount

Metric Unit Description
ConsumerCount Count The number of consumers subscribed to the destination.
EnqueueCount Count The number of messages sent to the destination.
EnqueueTime Time (milliseconds) The amount of time it takes the broker to accept a message from the producer and send it to the destination.
ExpiredCount Count The number of messages that couldn't be delivered because they expired.
DispatchCount Count The number of messages sent to consumers.
DequeueCount Count The number of messages acknowledged by consumers.
MemoryUsage Percent The percentage of the memory limit that the destination currently uses.
ProducerCount Count The number of producers for the destination.
QueueSize Count The number of messages in the queue.

Important

This metric applies only to queues.

Dimensions for Destination (Queue and Topic) Metrics

Dimension Description
Broker The name of the broker.
Topic or Queue The name of the topic or queue.