Skip to content

Commit b73dc45

Browse files
authored
Add bufferpool-wait-time-ns-total and bufferpool-wait-ratio for kafka producer (#17612)
* add ratio and total bufferpool wait metrics * changelog * orientation change * unit
1 parent dcd5413 commit b73dc45

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

kafka/changelog.d/17612.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add bufferpool-wait-time-ns-total and bufferpool-wait-ratio metrics for kafka producer

kafka/datadog_checks/kafka/data/metrics.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ jmx_metrics:
8787
bufferpool-wait-time:
8888
metric_type: gauge
8989
alias: kafka.producer.bufferpool_wait_time
90+
bufferpool-wait-ratio:
91+
metric_type: gauge
92+
alias: kafka.producer.bufferpool_wait_ratio
93+
bufferpool-wait-time-ns-total:
94+
metric_type: gauge
95+
alias: kafka.producer.bufferpool_wait_time_ns_total
9096
batch-size-avg:
9197
metric_type: gauge
9298
alias: kafka.producer.batch_size_avg

kafka/metadata.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ kafka.producer.available_buffer_bytes,gauge,10,byte,,The total amount of buffer
2525
kafka.producer.batch_size_avg,gauge,10,byte,,The average number of bytes sent per partition per-request.,0,kafka,avg batch size,cpu
2626
kafka.producer.batch_size_max,gauge,10,byte,,The max number of bytes sent per partition per-request.,0,kafka,max batch size,
2727
kafka.producer.buffer_bytes_total,gauge,10,byte,,The maximum amount of buffer memory the client can use (whether or not it is currently used).,1,kafka,buffer bytes,
28+
kafka.producer.bufferpool_wait_ratio,gauge,10,,,The fraction of time an appender waits for space allocation.,-1,kafka,bufferpool wait ratio,
2829
kafka.producer.bufferpool_wait_time,gauge,10,,,The fraction of time an appender waits for space allocation.,-1,kafka,bufferpool wait time,
30+
kafka.producer.bufferpool_wait_time_ns_total,gauge,10,nanosecond,,The total time in nanoseconds an appender waits for space allocation.,0,kafka,bufferpool wait time ns total,
2931
kafka.producer.bytes_out,gauge,10,byte,second,Producer bytes out rate.,1,kafka,prod bytes out,
3032
kafka.producer.compression_rate,gauge,10,fraction,,The average compression rate of record batches for a topic,1,kafka,compression rate,
3133
kafka.producer.compression_rate_avg,rate,10,fraction,,The average compression rate of record batches.,0,kafka,avg compression rate,

0 commit comments

Comments
 (0)