mirror of https://github.com/apache/kafka.git
KAFKA-1498 Follow-up: add metric on avg record size.
This commit is contained in:
parent
f1c6e97d71
commit
e3dfad304e
|
@ -343,6 +343,7 @@ public class Sender implements Runnable {
|
||||||
|
|
||||||
this.maxRecordSizeSensor = metrics.sensor("record-size-max");
|
this.maxRecordSizeSensor = metrics.sensor("record-size-max");
|
||||||
this.maxRecordSizeSensor.add("record-size-max", "The maximum record size", new Max());
|
this.maxRecordSizeSensor.add("record-size-max", "The maximum record size", new Max());
|
||||||
|
this.maxRecordSizeSensor.add("record-size-avg", "The average record size", new Avg());
|
||||||
|
|
||||||
this.metrics.addMetric("requests-in-flight", "The current number of in-flight requests awaiting a response.", new Measurable() {
|
this.metrics.addMetric("requests-in-flight", "The current number of in-flight requests awaiting a response.", new Measurable() {
|
||||||
public double measure(MetricConfig config, long now) {
|
public double measure(MetricConfig config, long now) {
|
||||||
|
|
Loading…
Reference in New Issue