kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkr...@apache.org
Subject git commit: KAFKA-1498 Follow-up: add metric on avg record size.
Date Tue, 01 Jul 2014 21:49:02 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk f1c6e97d7 -> e3dfad304


KAFKA-1498 Follow-up: add metric on avg record size.


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/e3dfad30
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/e3dfad30
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/e3dfad30

Branch: refs/heads/trunk
Commit: e3dfad304e6c2ffc146cdb9bc25a1d683f289ace
Parents: f1c6e97
Author: Jay Kreps <jay.kreps@gmail.com>
Authored: Tue Jul 1 14:47:57 2014 -0700
Committer: Jay Kreps <jay.kreps@gmail.com>
Committed: Tue Jul 1 14:47:57 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/kafka/clients/producer/internals/Sender.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/e3dfad30/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java
b/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java
index 52d209b..37b9d1a 100644
--- a/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java
+++ b/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java
@@ -343,6 +343,7 @@ public class Sender implements Runnable {
 
             this.maxRecordSizeSensor = metrics.sensor("record-size-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() {
                 public double measure(MetricConfig config, long now) {


Mime
View raw message