KAFKA-16325 Add missing producer metrics to documentatio (#15466)

Add `buffer-exhausted-rate`, `buffer-exhausted-total`, `bufferpool-wait-ratio` and `metadata-wait-time-ns-total`

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Owen Leung 2024-03-08 07:07:21 +08:00 committed by GitHub
parent 96d026bc99
commit 3f3cee1b21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 1 deletions

View File

@ -2537,11 +2537,26 @@ These metrics are reported on both Controllers and Brokers in a KRaft Cluster
<td>The total amount of buffer memory that is not being used (either unallocated or in the free list).</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>buffer-exhausted-rate</td>
<td>The average per-second number of record sends that are dropped due to buffer exhaustion</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>buffer-exhausted-total</td>
<td>The total number of record sends that are dropped due to buffer exhaustion</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>bufferpool-wait-time</td>
<td>The fraction of time an appender waits for space allocation.</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>bufferpool-wait-ratio</td>
<td>The fraction of time an appender waits for space allocation.</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>bufferpool-wait-time-total</td>
<td><b>*Deprecated*</b> The total time an appender waits for space allocation in nanoseconds. Replacement is <code>bufferpool-wait-time-ns-total</code></td>
@ -2582,7 +2597,11 @@ These metrics are reported on both Controllers and Brokers in a KRaft Cluster
<td>The total time the Producer spent aborting transactions in nanoseconds (for EOS).</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
<tr>
<td>metadata-wait-time-ns-total</td>
<td>the total time in nanoseconds that has spent waiting for metadata from the Kafka broker</td>
<td>kafka.producer:type=producer-metrics,client-id=([-.\w]+)</td>
</tr>
</tbody></table>
<h5 class="anchor-heading"><a id="producer_sender_monitoring" class="anchor-link"></a><a href="#producer_sender_monitoring">Producer Sender Metrics</a></h5>