kamalcph commented on code in PR #21613: URL: https://github.com/apache/kafka/pull/21613#discussion_r2873056588
########## docs/operations/monitoring.md: ########## @@ -990,6 +990,19 @@ The size of a partition on disk, measured in bytes. <tr> <td> +Partition size as a percentage of retention limit Review Comment: nit: ``` Partition size as a percentage of retention bytes limit ``` ########## docs/operations/monitoring.md: ########## @@ -990,6 +990,19 @@ The size of a partition on disk, measured in bytes. <tr> <td> +Partition size as a percentage of retention limit +</td> +<td> + +kafka.log:type=Log,name=RetentionSizeInPercent,topic=([-.\w]+),partition=([0-9]+) +</td> +<td> + +The partition size expressed as a percentage of the configured retention.bytes limit. Returns 0 for topics with tiered storage enabled (where the metric is reported by RemoteLogManager) or when retention is unlimited. May exceed 100% if retention cleanup is delayed. Review Comment: ``` when retention bytes is unlimited. ``` ########## docs/operations/monitoring.md: ########## @@ -1836,6 +1849,32 @@ kafka.log.remote:type=RemoteLogManager,name=RemoteLogReaderFetchRateAndTimeMs <tr> <td> +Retention Size In Percent +</td> +<td> + +Total partition size (local + remote) as a percentage of the configured retention.bytes limit. Available for tiered storage topics. May exceed 100% if retention cleanup is delayed. Returns 0 when retention is unlimited. Review Comment: ``` Returns 0 when retention bytes is unlimited. ``` ########## docs/operations/monitoring.md: ########## @@ -1836,6 +1849,32 @@ kafka.log.remote:type=RemoteLogManager,name=RemoteLogReaderFetchRateAndTimeMs <tr> <td> +Retention Size In Percent +</td> +<td> + +Total partition size (local + remote) as a percentage of the configured retention.bytes limit. Available for tiered storage topics. May exceed 100% if retention cleanup is delayed. Returns 0 when retention is unlimited. +</td> +<td> + +kafka.log.remote:type=RemoteLogManager,name=RetentionSizeInPercent,topic=([-.\w]+),partition=([0-9]+) +</td> </tr> +<tr> +<td> + +Local Retention Size In Percent +</td> +<td> + +Local log size as a percentage of the configured local.retention.bytes limit. Available for tiered storage topics. Helps operators monitor pressure on local disks independently of remote storage. May exceed 100% if retention cleanup is delayed. Returns 0 when local retention is unlimited. Review Comment: nit: ``` Returns 0 when local retention bytes is unlimited. ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
