Amazon MQ
Developer Guide

Tutorial: Accessing CloudWatch Metrics for Amazon MQ

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 a full list of Amazon MQ metrics, see Monitoring Amazon MQ Using CloudWatch.

For information about creating a CloudWatch alarm for a metrics, see Create or Edit a CloudWatch Alarm in the Amazon CloudWatch User Guide.

Note

There is no charge for the Amazon MQ metrics reported in CloudWatch. These metrics are provided as part of the Amazon MQ service.

CloudWatch monitors only the first 200 destinations.

AWS Management Console

The following example shows you how to access CloudWatch metrics for Amazon MQ using the AWS Management Console.

Note

If you're already signed into the Amazon MQ console, on the broker Details page, choose Actions, View CloudWatch metrics.

  1. Sign in to the CloudWatch console.

  2. On the navigation panel, choose Metrics.

  3. Select the AmazonMQ metric namespace.

  4. Select one of the following metric dimensions:

    • Broker Metrics

    • Queue Metrics by Broker

    • Topic Metrics by Broker

    In this example, Broker Metrics is selected.

  5. You can now examine your Amazon MQ metrics:

    • To sort the metrics, use the column heading.

    • To graph the metric, select the check box next to the metric.

    • To filter by metric, choose the metric name and then choose Add to search.

AWS Command Line Interface

To access Amazon MQ metrics using the AWS CLI, use the get-metric-statistics command.

For more information, see Get Statistics for a Metric in the Amazon CloudWatch User Guide.

Amazon CloudWatch API

To access Amazon MQ metrics using the CloudWatch API, use the GetMetricStatistics action.

For more information, see Get Statistics for a Metric in the Amazon CloudWatch User Guide.