Kafka protocol

VuGen's Kafka protocol enables you to create a Vuser script to monitor the health of your Kafka deployment. You can run Kafka scripts in LoadRunner Professional to collect Kafka-specific metrics, including producer and consumer metrics.

VuGen's Kafka protocol supports scripting in Java, using standard Java conventions.

All standard Java methods are supported in Kafka scripts. In addition, VuGen provides Kafka-specific functions for Kafka scripts. These functions are all static methods of the LrKafkaProducer and LrKafkaConsumer classes, which must be initialized for each Vuser. For details, see Kafka Functions in the Function Reference.

When you create a new Kafka script, the import lrapi.lr class is already inserted into the script template.

Back to top

See also: