Hi everyone,

I'm currently working on KAFKA-15300
<https://issues.apache.org/jira/browse/KAFKA-15300>. The kafka-log-dirs.sh
tool currently provides output like this:

{"brokers":[{"broker":1,"logDirs":[{"partitions":[{"partition":"tieredTopic-0","size":0,"offsetLag":0,"isFuture":false}],"error":null,"logDir":"/tmp/kraft-combined-logs"}]}],"version":1}

To incorporate remoteLogSize into this output, I'm proposing the following:

   -

   Rename the existing size property to *localLogSize* to reflect that it
   represents the local log size.
   -

   Calculate *remoteLogSize* by querying the remoteLogSizeMetric
   
<https://github.com/aheev/kafka/blob/409a43eff77511e89bba2f95934cb1ebc417236d/storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteStorageMetrics.java#L44>.
   Is there an alternative method for this?
   -

   Introduce *totalSize* as the sum of localLogSize + remoteLogSize.

Does this approach seem sound?"

Reply via email to