Updated on 2024-10-09 GMT+08:00

Viewing Kafka Topic Information

Scenario

You can view information about created Kafka topics on the Manager or Kafka UI.

Viewing Kafka Topic Information on the Manager

  1. Log in to FusionInsight Manager. For details, see Accessing FusionInsight Manager. Choose Cluster > Services > Kafka.
  2. Click KafkaTopicMonitor.

    All topics are displayed in the list by default. You can view the number of partitions and replicas of the topics.

  3. Click the desired topic in the list to view its details.

    If the following operations are performed, Kafka topic monitoring may not be displayed:

    • Capacity expansion or reduction has been performed on Kafka or ZooKeeper.
    • Instances have been added to or deleted from Kafka or ZooKeeper.
    • The Elasticsearch service is reinstalled.
    • Kafka is switched to another ZooKeeper service.

    Perform the following steps to rectify the fault:

    1. Log in to the active OMS node of the cluster and run the following command to switch to user omm:

      su - omm

    2. Restart the CEP service.

      restart_app cep

      Wait for 3 minutes and check the Kafka topic monitoring again.

Viewing Kafka Topic Information on KafkaUI

  1. Access the Kafka UI.

    1. Log in to FusionInsight Manager as a user who has the permission to access the Kafka UI and choose Cluster > Services > Kafka.

      If you need to perform related operations on the page, for example, creating a topic, you need to grant related permissions to the user. For details, see Kafka User Permissions.

    2. On the right of KafkaManager WebUI, click the URL to access Kafka UI.

  2. Click Brokers. The broker details page is displayed.
  3. In the Broker Summary area, you can view Broker ID, Host, Rack, Disk(Used|Total), and Memory(Used|Total) of brokers.

  4. In the Brokers Metrics area, you can view the JMX metrics of the broker node data traffic, including the average number of incoming messages per second, number of bytes of incoming messages per second, number of bytes of outgoing messages per second, and number of failed requests per second, total number of requests per second, and number of production requests per second in different time windows.

  5. In the upper right corner of the page, you can enter a host IP address or rack configuration information to search for a broker.