What is DescribeLogDirs?
Shows per-broker disk usage, replica offset lag, and which replicas are mid-move (futureLogDir), via kafka-log-dirs.sh. High offsetLag on a follower replica indicates it's lagging behind the leader; compare with the ISR list to assess replication health.
Wire Diagram
Request Header · flexible
message_size
int32 · 4B
api_key
int16 · 2B
api_version
int16 · 2B
correlation_id
int32 · 4B
client_id
string (compact)
tagged
var
DescribeLogDirsRequest v4
tagged
var
Topic
string (compact)
Partitions
[]int32
tagged
var
Schema & Example
Schema { "Topics": [{ "Topic": string, "Partitions": [int32] }]? }
Example { "Topics": [{ "Topic": "orders", "Partitions": [1, 2, 3] }]? }