You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/09/09 22:24:34 UTC

[GitHub] [kafka] wushujames commented on a change in pull request #9276: KAFKA-10473: Add docs on partition size-on-disk, and other log-related metrics

wushujames commented on a change in pull request #9276:
URL: https://github.com/apache/kafka/pull/9276#discussion_r485955266



##########
File path: docs/ops.html
##########
@@ -1129,6 +1128,26 @@ <h4><a id="remote_jmx" href="#remote_jmx">Security Considerations for Remote Mon
         <td>kafka.server:type=BrokerTopicMetrics,name=ReassignmentBytesInPerSec</td>
         <td></td>
       </tr>
+      <tr>
+        <td>Size of a partition on disk (in bytes)</td>
+        <td>kafka.log:type=Log,name=Size,topic=([-.\w]+),partition=([0-9]+)</td>
+        <td>The size of a partition on disk, measured in bytes.</td>
+      </tr>
+      <tr>
+        <td>Number of log segments in a partition</td>
+        <td>kafka.log:type=Log,name=NumLogSegments,topic=([-.\w]+),partition=([0-9]+)</td>
+        <td>The number of log segments in a partition.</td>

Review comment:
       I wasn't sure what information to add for this column of "normal value". 
   * For date-based retention topics, it should roughly be sizeOfTopic/segmentSize
   * But for compacted topics, that isn't the case
   * If this is too high, it will mean more file handles.
   * If it is too high, it might inefficient (is this true?)
   
   Anyway, I wasn't sure what to put, so I left it simple.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org