Monitoring

Kafka

Kafka is comprehensively monitored by LogicMonitor using JMX. As such, it requires JMX to be set up like other java applications, but is easier to do so.

Exporting the environment variable JMX_PORT before starting Kafka will configure it to start with JMX enabled on the specified port.

You can edit your Kafka startup scripts to include the line:

             export JMX_PORT=9999

to enable JMX on port 9999.

To enable LogicMonitor to discover and monitor Kafka, you need to set the following:

Set the JMX port that kafka is listening on as a property ##kafka.jmxport##.

This can be set on the device level, or at higher levels so all devices inherit it.

You also need to set the category KafkaBroker on the servers that run Kafka, so that the datasources associate with the correct devices.

ActiveDiscovery should then find all the topics and comprehensive Kafka monitoring will commence.