We want to get the statistics for partition through the command or exposed API, like size of the partition , no of event in a partition for a topic.
Asked
Active
Viewed 164 times
0
-
Out of the box, Kafka doesn't expose this information, or have commands for it. You can SSH to a broker and `du` its topic partition directories, as one solution, but it's possible different replicas have different sizes (the leader partition will always be largest) – OneCricketeer Sep 23 '22 at 14:51
-
@OneCricketeer Can you please add this comment as an answer. – Nitul Oct 08 '22 at 17:14