All Products
Search
Document Center

ApsaraMQ for Kafka:Dashboard

Last Updated:Sep 05, 2025

ApsaraMQ for Kafka provides a dashboard feature that is powered by the metric storage and display capabilities of Alibaba Cloud ARMS Prometheus Service and Grafana. This feature offers a comprehensive and centralized way to monitor metrics and collect metric data, which helps you quickly understand your business status.

Prerequisites

  • Activate Managed Service for Prometheus.

  • A service-linked role is created.

    • Role Name: AliyunServiceRoleForAlikafka

    • Policy Name: AliyunServiceRolePolicyForAlikafka

    • Permissions: Allows ApsaraMQ for Kafka to use this role to access other Alibaba Cloud services, such as CloudMonitor and ARMS. This access is required to enable the CloudMonitor and dashboard features.

    • For more information, see Service-linked Role.

Billing

Metrics for ApsaraMQ for Kafka are considered basic metrics in Managed Service for Prometheus and are free of charge. You are not charged for using the dashboard feature.

For more information, see Metric description and Pay-as-you-go.

Metric details

The following table describes the fields in the metrics.

Field

Value

Metric type

  • Counter: A cumulative metric whose value only increases. For example, the total number of producer requests.

  • Gauge: A metric that can increase or decrease. Its value represents an instantaneous measurement. For example, the reserved specification for instance sending.

  • Summary: Similar to a histogram. It measures the distribution of metric values. For example, the size of a request body.

Label

  • tenant_userid: The ID of your Alibaba Cloud account.

  • instance_id: The ID of the ApsaraMQ for Kafka instance.

  • instance_name: The name of the ApsaraMQ for Kafka instance.

  • topic: The topic in ApsaraMQ for Kafka.

  • partition: The partition.

  • group_id: The consumer group.

  • authentication_type:

    • VPC_PLAINTEXT

    • PUB_SASL_SSL

    • VPC_SASL_PLAINTEXT

    • VPC_SASL_SSL

Instance metrics

Metric type

Metric name

Description

Labels

Gauge

kafka_disk_log_size

The storage size of the instance. Unit: bytes.

  • tenant_userid

  • instance_id

  • instance_name

Gauge

kafka_server_cloudenhancedreplicamanager_allreplicascount

The total number of partitions for all replicas.

  • tenant_userid

  • instance_id

  • instance_name

Gauge

kafka_server_socket_server_metrics_connection_count

The number of connections.

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Gauge

kafka_instance_io_spec_write

The reserved specification for instance sending.

  • tenant_userid

  • instance_id

  • instance_name

Gauge

kafka_instance_io_spec_read

The reserved specification for instance consumption.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_bytesin_total

Production traffic (jmx-exporter metric).

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Counter

kafka_server_brokertopicmetrics_bytesout_total

Consumption traffic (jmx-exporter metric).

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Counter

kafka_server_brokertopicmetrics_failedproducerequests_total

The number of failed producer requests.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_totalproducerequests_total

The total number of producer requests.

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Counter

kafka_server_brokertopicmetrics_failedfetchrequests_total

The number of failed consumer requests.

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Counter

kafka_server_brokertopicmetrics_totalfetchrequests_total

The total number of consumer requests.

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Gauge

kafka_network_socketserver_expiredconnectionskilledcount

The number of expired connections.

  • tenant_userid

  • instance_id

  • instance_name

Summary

kafka_network_requestmetrics_requestbytes

The size of the request body.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_bytesrejected_total

The traffic rejected by each topic when the record batch size is larger than the max.message.bytes configuration. Unit: bytes.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_nokeycompactedtopicrecords_total

The number of records in a compacted topic that do not have a key.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_invalidmessagecrcrecords_total

The number of cyclic redundancy check (CRC) failures.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_invalidmagicnumberrecords_total

The number of message version verification failures.

  • tenant_userid

  • instance_id

  • instance_name

Counter

kafka_server_brokertopicmetrics_invalidoffsetorsequencerecords_total

The number of message authentication failures caused by discontinuous offsets or sequence numbers.

  • tenant_userid

  • instance_id

  • instance_name

Topic metrics

Metric type

Metric name

Description

Labels

Gauge

kafka_log_log_size

The storage size of the topic partition.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • partition

Gauge

kafka_topic_partition_current_offset

The maximum offset of the partition.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • partition

Gauge

kafka_topic_partition_oldest_offset

The minimum offset of the partition.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • partition

Gauge

kafka_consumergroup_lag

The amount of message accumulation.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

Counter

kafka_server_brokertopicmetrics_totalfetchrequests_total

The number of requests.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • authentication_type

Counter

kafka_server_brokertopicmetrics_bytesin_total

Production traffic (jmx-exporter metric).

  • tenant_userid

  • instance_id

  • instance_name

  • authentication_type

Counter

kafka_server_brokertopicmetrics_bytesout_total

Outbound traffic. Unit: bytes.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • authentication_type

Counter

kafka_server_brokertopicmetrics_messagesin_total

The number of inbound messages. Unit: messages.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • authentication_type

Group metrics

Metric type

Metric name

Description

Labels

Gauge

kafka_consumergroup_lag

The total amount of message accumulation.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • group_id

Counter

kafka_consumergroup_current_offset

The consumer offset of the group.

  • tenant_userid

  • instance_id

  • instance_name

  • topic

  • partition

  • group_id

View dashboards in the ApsaraMQ for Kafka console

  1. Log on to the ApsaraMQ for Kafka console. In the Resource Distribution section of the Overview page, select the region where the ApsaraMQ for Kafka instance that you want to manage resides.

  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 > Dashboard.

  4. On the Dashboard page, set a time range in the upper-right corner to view metrics such as instance storage size, number of partitions, number of connections, and inbound and outbound traffic.

    To view dashboard monitoring data for topics and groups, navigate to the details page of the specific topic or group and click the Dashboard tab.

    • On the Topic Details page, you can view production-related metrics and producer client metrics for a specific topic.

    • On the Group Details page, you can view consumption-related metrics and consumer client metrics for a specific group.

View dashboards 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 in the Endpoint column of the target workspace to open Grafana.

  3. View dashboards based on your Grafana version.

    Grafana 9.x

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

    2. On the Browse tab, click a 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-dashboard-v3 in the folder that starts with cloud-product-prometheus_cn-hangzhou. Then, enter the instance ID on the dashboard page to view the monitoring data of the instance.

    Grafana 10.x

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

    2. In the navigation pane on the left of Grafana, select Dashboards. Click a 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-dashboard-v3 in the folder that starts with cloud-product-prometheus_cn-hangzhou. Then, enter the instance ID on the dashboard page to view the monitoring data of the instance.

FAQ

How do I obtain dashboard metric data?

  1. Log on to the ARMS console with your Alibaba Cloud account.

  2. In the navigation pane on the left, click Integration Center.

  3. On the Integration Center page, enter Kafka in the search box and click the search icon.

  4. In the search results, select the Alibaba Cloud service that you want to integrate, such as Alibaba Cloud Kafka Message Queue Service. For more information, see Step 1: Integrate monitoring data of an Alibaba Cloud service.

    Note

    To obtain metric data for ApsaraMQ for Kafka Serverless instances, turn on the Advanced Monitoring Metrics switch in the Configuration Information section during integration. Otherwise, you can obtain metric data only for non-Serverless instances.

  5. After the integration is successful, click Integration Management in the navigation pane on the left.

  6. On the Integration Management page, click the Cloud Service Region Environment tab.

  7. In the Cloud Service Region Environment list, click the name of the target environment to open the environment details page.

  8. On the Component Management tab, in the Basic Information section, click the region of the Prometheus Instance.

  9. On the Settings tab, you can view the available data access methods.

How do I connect dashboard metric data to a self-managed Grafana instance?

All metric data for ApsaraMQ for Kafka is stored in your Managed Service for Prometheus instance. You can use the APIs provided by Managed Service for Prometheus to connect the dashboard metric data from ApsaraMQ for Kafka to your self-managed Grafana instance.

For more information, see Use an HTTP API endpoint to connect Prometheus data to a Grafana instance or a self-managed application.

Note

Before you connect the data, make sure that Managed Service for Prometheus in the region where your ApsaraMQ for Kafka instance resides is integrated with Alibaba Cloud Kafka Message Queue Service.