To monitor Apache Kafka using AppManager you need to use Kafka-Monitor and Java Application Server on Windows and UNIX module. Kafka-Monitor is a framework that allows you to monitor Kafka cluster using end-to-end pipelines to obtain a number of stats such as service availability.
Run the discovery KS for Java and in the field “Jolokia URL address” input the address for Jolokia as:
{IP address of Kafka server}:8778
Once the job stops, Kafka will be discovered in JAVA view and you can see the tree structure with managed beans.
Now we can run the “ManagedBeanUtil” KS to monitor various parameters of Kafka.
E.g. To monitor the kafka.consumer/consumer-fetch-manager-metrics/kmf-consumer/fetch-rate we deploy the KS on its respective component and specify the max-min thresholds, as shown below:
We get an event when the thresholds are crossed, as below: