All Products
Search
Document Center

ApsaraMQ for RabbitMQ:Querying instance peak TPS

Last Updated:Mar 07, 2026

This topic describes how to query the peak Transactions Per Second (TPS) for an ApsaraMQ for RabbitMQ instance.

Background information

If the peak TPS of your actual traffic exceeds the TPS limit of your instance, the ApsaraMQ for RabbitMQ instance is throttled.

To prevent business disruptions from throttling, monitor the peak TPS of your instance as a key metric in your daily O&M (Operations and Maintenance) tasks. This practice provides early warnings if you are at risk of exceeding your instance specifications. By observing changes in the peak TPS, you can also understand business fluctuations and determine whether the current instance type meets your business needs.

Query methods

ApsaraMQ for RabbitMQ supports the following methods to query the peak TPS of an instance.

Query method

Description

Time granularity

Resource level

(Recommended) Query instance peak TPS and set alerts using Cloud Monitor

Advantages:

  • The query results can show peak TPS changes for up to 14 days. This lets you quickly identify the scope of any abnormalities.

  • Supports setting alerts using the peak TPS of an instance as a monitoring metric.

  • Free to use.

Minute-level peak TPS

The value is the maximum TPS of the instance per second within a 1-minute epoch.

Instance-level peak TPS

(Recommended) Query instance peak TPS from the instance details page

  • Advantages:

    • Supports querying second-level peak TPS. This lets you precisely identify the scope of any abnormalities.

    • Supports viewing the peak TPS of specific API operations.

    • Free to use.

  • Disadvantage: To avoid displaying too much data, only the query results from the last 10 minutes are shown.

Second-level peak TPS

  • Instance-level peak TPS

  • Peak TPS of a specific API operation within the instance

Query instance peak TPS using log query

  • Advantage: Supports queries using Simple Log Service (SLS) analytic statements. This is suitable for complex troubleshooting scenarios.

  • Disadvantages:

    • The operation is more complex and the query results are less intuitive compared to the first two methods.

    • You must pay separate fees for Simple Log Service. For more information about billing, see Billing items of Simple Log Service.

Second-level peak TPS

Instance-level peak TPS

Query instance peak TPS and set alerts using Cloud Monitor

Query instance peak TPS

  1. Log on to the ApsaraMQ for RabbitMQ console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar of the Instances page, select the region where the instance that you want to manage resides. Then, in the instance list, click the name of the instance that you want to manage.

  3. In the navigation pane on the left, click Monitoring and Alerting.

  4. On the Monitoring and Alerting page, select Instance from the Group drop-down list and specify a time range for the query.

    The following figure shows an example of how to query the peak TPS of an instance:监控指标查询结果

Set alerts for API peak TPS

  1. Log on to the ApsaraMQ for RabbitMQ console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar of the Instances page, select the region where the instance that you want to manage resides. Then, in the instance list, click the name of the instance that you want to manage.

  3. In the navigation pane on the left, click Monitoring and Alerting.

  4. In the upper-right corner of the Monitoring and Alerting page, click Create Alert Rule.

    You are redirected to the Create Alert Rule panel in Cloud Monitor.

  5. In the Set Rule Description panel, configure the alert rule. From the Monitoring Metric drop-down list, select Instance > Instance API Request Rate Peak (Max per minute). For more information, see Alert service.

Query instance peak TPS from the instance details page

  1. Log on to the ApsaraMQ for RabbitMQ console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar of the Instances page, select the region where the instance that you want to manage resides. Then, in the instance list, click the name of the instance that you want to manage.

  3. On the Instance Details page, click the Peak TPS Query tab.

    Note

    You can use this method to query peak TPS data for the last 15 days. The results are provided at a per-second granularity. To avoid displaying an excessive amount of data, only data from the last 10 minutes is shown.

    • To query the instance-level peak TPS:

      Click the Query by Instance tab, select a time range, and then click Query.

      按实例级别查询

    • To query the API-level peak TPS:

      Click the Query by API tab, select a time range, and then click Query.

      按API级别查询

Query instance peak TPS using log query

For more information, see Quick start for query and analysis.

The following is an example of an analytic statement:

(Action : ConnectionOpen or Action : ChannelOpen or Action: ExchangeDeclare or Action: QueueBind or Action : QueueDeclare or Action : QueueDelete or Action : ExchangeDelete or Action : QueueUnBind or Action : ExchangeBind or Action : ExchangeUnBind or Action : BasicConsume or Action : BasicReject or Action : BasicRecover or Action : SendMessage or Action : BasicAck or Action : BasicNack or Action : BasicGet ) | select from_unixtime(cast(microtime as bigint)/1000/1000) as time, COUNT(*) as count GROUP by time ORDER by time limit 90000000