Apache Kafka — Prerequisites

Prerequisites for monitoring Apache Kafka with HEAL.

1 min read Updated SS

Prerequisites to complete before adding this component in the HEAL Control Center.

The prerequisites for Kafka server monitoring are:

  1. A running Kafka cluster: Ensure that the Kafka cluster is running, and the brokers are up and running.
  2. JMX configuration: Kafka brokers expose JMX metrics that can be used for monitoring. Ensure that JMX is enabled and properly configured on each broker.To enable the JMX port using Env and setting the JMX port as part of starting the Kafka server, use the below command:

    env JMX_PORT=<portnumber> bin/kafka-server-start.sh config/server.properties &
    

    For example:

    env JMX_PORT=10167 bin/kafka-server-start.sh config/server.properties &
    
  3. Access to Kafka brokers: HEAL must have access to the Kafka brokers to collect the JMX metrics. This can be achieved by exposing the JMX port on the brokers or using a remote JMX connection.

  4. Alerting setup: Configure alerting to notify the operations team of any issues with the Kafka cluster.
  5. Start Kafka-zookeeper using the below command from the bin folder:

    ./zookeeper-server-start.sh ../config/zookeeper.properties
    
  6. Start the Kafka server using the below command from the bin folder:

    ./kafka-server-start.sh ../config/server.properties
    

See also: Apache Kafka (what HEAL monitors) · Setup & configuration guide