Share this page

# LrKafkaProducer.metrics

Calls the metrics method on the KafkaProducer initialized for the Vuser.

`public static Map<MetricName, ? extends Metric> metrics()`

## Arguments

This function does not have any arguments.

## Return Values

Returns the full set of internal metrics maintained by the producer.

## General information

This function retrieves the internal metrics maintained by the producer.

For more information about this function, see the Apache Kafka documentation.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: