Amazon CloudWatch
用户指南
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 Amazon AWS 入门

Amazon MQ 指标

Amazon MQ 和 Amazon CloudWatch 集成在一起,因此您可以使用 CloudWatch 查看和分析您的 ActiveMQ 代理和代理的目标 (队列和主题) 的指标。您可以从 CloudWatch 控制台、AWS CLI 或 CloudWatch CLI 查看和分析您的 Amazon MQ 指标。将每分钟自动从代理中轮询一次 Amazon MQ 的 CloudWatch 指标,然后将其推送到 CloudWatch。有关更多信息,请参阅 Amazon MQ 开发人员指南 中的使用 CloudWatch 监控 Amazon MQ

注意

以下统计数据对所有指标都有效:

  • Average

  • Minimum

  • Maximum

  • Sum

AWS/AmazonMQ 命名空间包括以下指标。

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.

注意

A single-instance broker has the suffix -1. An active-standby broker for high availability has the suffixes -1 and -2 for its redundant pair.

Destination (Queue and Topic) Metrics

重要

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.

重要

This metric applies only to queues.

Dimensions for Destination (Queue and Topic) Metrics

Dimension Description
Broker

The name of the broker.

注意

A single-instance broker has the suffix -1. An active-standby broker for high availability has the suffixes -1 and -2 for its redundant pair.

Topic or Queue The name of the topic or queue.