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
Log on to the ApsaraMQ for Kafka console. On the Overview page, select a region in the Resource Distribution section.
On the Instances page, click the name of the instance that you want to manage.
In the navigation pane on the left, click .
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
Log on to the Managed Service for Grafana console. In the navigation pane on the left, click Workspace Management.
On the Workspace Management page, click the URL of the target workspace to access Grafana.
View the monitoring data based on the version of Grafana that you use.
Grafana 9.x version
In the navigation pane on the left of Grafana, click the
icon, and then click Browse.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-hangzhouto view the monitoring data.
Grafana version 10.x
On the Grafana homepage, click the
icon in the upper-left corner.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-hangzhouto 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.