kafka-dev / kafka

A distributed publish/subscribe messaging service
http://sna-projects.com/kafka
Apache License 2.0
549 stars 300 forks source link

Kafka Producer Metrics Explanation #54

Open pratikkumar19 opened 7 years ago

pratikkumar19 commented 7 years ago

Context : Kafka Producer 0.8.x

Problem: Kafka Producer emits metrics regarding request size stats, request latency and rate stats. But the inherent meaning of the these metrics are not clear. What does this measure? Is for each producer send request(which contains batches of messages per broker)? OR Is it for a batch of messages defined according to user batching policy? What happens when some application code has multiple async producers to increase performance (how are rate and percentiles measured?)?