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
Response Header · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
DescribeLogDirsResponse v2
ThrottleTimeMs
int32 · 4B
tagged
var
ErrorCode
int16 · 2B
LogDir
string (compact)
tagged
var
Name
string (compact)
tagged
var
PartitionIndex
int32 · 4B
PartitionSize
int64 · 8B
OffsetLag
int64 · 8B
IsFutureKey
bool · 1B
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "Results": [{ "ErrorCode": int16, "LogDir": string, "Topics": [{ "Name": string, "Partitions": [{ "PartitionIndex": int32, "PartitionSize": int64, "OffsetLag": int64, "IsFutureKey": bool }] }] }] }
Example { "ThrottleTimeMs": 0, "Results": [{ "ErrorCode": 0, "LogDir": "/var/kafka-logs", "Topics": [{ "Name": "orders", "Partitions": [{ "PartitionIndex": 3, "PartitionSize": 1048576, "OffsetLag": 150382, "IsFutureKey": true }] }] }] }