Alibaba Cloud Prometheus Service allows 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 the cloud services. This topic describes the metrics that are supported in Prometheus Service and how to use Prometheus Service in Message Queue for Apache Kafka.

Metrics

The following table describes the metrics that are supported in Prometheus Service.
Metric type Metric name Description Unit
Instance instance_message_input The amount of message production traffic that is generated on a Message Queue for Apache Kafka instance. bytes/s
instance_message_output The amount of message consumption traffic that is generated on a Message Queue for Apache Kafka instance. bytes/s
instance_reqs_input The number of requests for message production and sending on a Message Queue for Apache Kafka instance. Request/s
instance_message_num_input The number of messages that are produced on a Message Queue for Apache Kafka instance. Message/s
instance_reqs_output The number of requests for message consumption on a Message Queue for Apache Kafka instance. Request/s
instance_disk_capacity The disk usage of a Message Queue for Apache Kafka instance. %
instance_tcp_num The total number of TCP connections that are established to a Message Queue for Apache Kafka instance. N/A
instance_public_tcp_num The total number of TCP connections that are established to a Message Queue for Apache Kafka instance over the Internet. N/A
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. Request/s
topic_reqs_output The number of requests for message consumption in a topic. Request/s
topic_message_num_input The number of messages that are produced in a topic. Message/s
Group message_accumulation The total number of accumulated messages. N/A
message_accumulation_onetopic The number of accumulated messages in a topic. N/A
rebalance_generation The number of times that messages are rebalanced in a consumer group. N/A

View monitoring data

  1. Log on to the Message Queue for Apache Kafka console. In the Resource Distribution section of the Overview page, click the name of the region where your instance is deployed.
  2. On the Instances page, click the name of the instance that you want to manage.
  3. In the left-side navigation pane, click Prometheus Monitoring.
  4. On the Prometheus Monitoring page, select the instance for which you want to view monitoring data from the instanceId drop-down list. In the upper-right corner, specify a time range to view the monitoring data.
    If you want to view the monitoring data for a specific topic or consumer group, go to the details page of the topic or consumer group and click the Prometheus Monitoring tab.