All Products
Search
Document Center

ApsaraMQ for Kafka:Prometheus monitoring

Last Updated:Dec 04, 2025

Alibaba Cloud Prometheus Service enables you to collect, store, and view monitoring data of Alibaba Cloud services in a unified manner. Prometheus Service also provides Grafana dashboards and alerts for cloud services. This topic describes the metrics supported in Prometheus Service and how to use Prometheus Service with ApsaraMQ for Kafka.

Metric details

The following table describes the metrics supported in Prometheus Service.

Metric type

Metric name

Description

Unit

Instance

instance_message_input

The message production traffic of an ApsaraMQ for Kafka instance.

bytes/s

instance_message_output

The amount of message consumption traffic that is generated on an ApsaraMQ for Kafka instance.

bytes/s

instance_reqs_input

The number of requests for message production and sending on an ApsaraMQ for Kafka instance.

requests/s

instance_message_num_input

The number of messages that are produced on an ApsaraMQ for Kafka instance.

messages/second

instance_reqs_output

The number of requests for message consumption on an ApsaraMQ for Kafka instance.

requests/s

instance_disk_capacity

The disk usage of an instance.

%

instance_tcp_num

The number of TCP connections that are established to a single node of an instance.

Item

instance_tcp_num_sum

The total number of TCP connections that are established to an ApsaraMQ for Kafka instance.

unit

instance_public_tcp_num

The number of Internet TCP connections that are established to a single node of an instance.

Item

instance_public_tcp_num_sum

The total number of Internet TCP connections that are established to an instance.

Unit

Topic

topic_message_input

The amount of message production traffic in a topic.

bytes/s

topic_message_output

The amount of message consumption traffic in a topic.

bytes/s

topic_reqs_input

The number of requests for message production and sending in a topic.

requests/s

topic_reqs_output

The number of requests for message consumption in a topic.

requests/s

topic_message_num_input

The number of messages that are produced in a topic.

messages/second

Group

message_accumulation

The total number of accumulated messages.

Items

message_accumulation_onetopic

The number of accumulated messages in a topic.

Items

rebalance_generation

The number of times that messages are rebalanced in a consumer group.

Count

group_message_num_output

Total consumption rate

messages/second

group_message_num_output_onetopic

The number of messages that are consumed in a topic.

messages/second

group_message_num_output_onetopic_onepartition

The number of messages that are consumed in a partition.

messages/second

View monitoring data in the ApsaraMQ for Kafka console

  1. Log on to the ApsaraMQ for Kafka console. On the Overview page, select a region in the Resource Distribution section.

  2. On the Instances page, click the name of the instance that you want to manage.

  3. In the navigation pane on the left, click Observability > Prometheus Monitoring.

  4. On the Prometheus Monitoring page, set a time range in the upper-right corner to view the monitoring data.

    To view the Prometheus monitoring data of a topic or a consumer group, go to the details page of the topic or consumer group and click the Prometheus Monitoring tab.

View monitoring data in the Managed Service for Grafana console

  1. Log on to the Managed Service for Grafana console. In the navigation pane on the left, click Workspace Management.

  2. On the Workspace Management page, click the URL of the target workspace to access Grafana.

  3. View the monitoring data based on the version of Grafana that you use.

    Grafana 9.x version

    1. In the navigation pane on the left of Grafana, click the image icon, and then click Browse.

    2. On the Browse tab, click the dashboard in the target folder to view all monitoring charts on the dashboard.

      For example, to view the dashboard data of an instance in the China (Hangzhou) region, click kafka-instance in the folder whose name starts with cloud-product-prometheus_cn-hangzhou to view the monitoring data.

    Grafana version 10.x

    1. On the Grafana homepage, click the image icon in the upper-left corner.

    2. In the navigation pane on the left of Grafana, select Dashboard and click the dashboard in the target folder to view all monitoring charts on the dashboard.

      For example, to view the dashboard data of an instance in the China (Hangzhou) region, click kafka-instance in the folder whose name starts with cloud-product-prometheus_cn-hangzhou to view the monitoring data.

References

How do I import metric data on the dashboard of ApsaraMQ for Kafka to a self-managed Grafana system?

All metric data on the dashboard of ApsaraMQ for Kafka are stored in Alibaba Cloud Managed Service for Prometheus. You can use the API operations provided by Managed Service for Prometheus to import metric data on the dashboard of ApsaraMQ for Kafka to a self-managed Grafana system.

For more information, see Import data from Managed Service for Prometheus to a local Grafana system.