Amazon CloudWatch
ユーザーガイド

Amazon MQ メトリクス

Amazon MQ と Amazon CloudWatch は統合されているため、CloudWatch を使用して ActiveMQ ブローカーのメトリクスおよびブローカーの送信先 (キューとトピック) を表示して分析できます。CloudWatch コンソール、AWS CLI、または CloudWatch CLI から Amazon MQ メトリクスを表示して分析できます。Amazon MQ の CloudWatch メトリクスは、1 分おきにブローカーから自動的にポーリングされた後、CloudWatch にプッシュされます。詳細については、Amazon MQ 開発者ガイドの「CloudWatch を使用した Amazon MQ のモニタリング」を参照してください。

注記

次の統計はすべてのメトリクスに対して有効です。

  • Average

  • Minimum

  • Maximum

  • Sum

AWS/AmazonMQ 名前空間には、次のメトリクスが含まれます。

Broker Metrics

Metric Unit Description
CpuCreditBalance Credits (vCPU-minutes)

重要

This metric is available only for the mq.t2.micro broker instance type.

CPU credit metrics are available only at five-minute intervals.

The number of earned CPU credits that an instance has accrued since it was launched or started (including the number of launch credits). The credit balance is available for the broker instance to spend on bursts beyond the baseline CPU utilization.

Credits are accrued in the credit balance after they're earned and removed from the credit balance after they're spent. The credit balance has a maximum limit. Once the limit is reached, any newly earned credits are discarded.

CpuUtilization Percent The percentage of allocated EC2 compute units that the broker currently uses.
CurrentConnectionsCount Count The current number of active connections on the current broker.
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.
TotalConsumerCount Count The number of message consumers subscribed to destinations on the current broker.
TotalMessageCount Count The number of messages stored on the broker.
TotalProducerCount Count The number of message producers active on destinations on the current 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.