|
@@ -132,6 +132,7 @@ public class DataNodeMetrics {
|
|
|
@Metric MutableRate heartbeatsTotal;
|
|
|
@Metric MutableRate lifelines;
|
|
|
@Metric MutableRate blockReports;
|
|
|
+ @Metric private MutableRate blockReportsCreateCostMills;
|
|
|
@Metric MutableRate incrementalBlockReports;
|
|
|
@Metric MutableRate cacheReports;
|
|
|
@Metric MutableRate packetAckRoundTripTimeNanos;
|
|
@@ -321,6 +322,10 @@ public class DataNodeMetrics {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void addBlockReportCreateCost(long latency) {
|
|
|
+ blockReportsCreateCostMills.add(latency);
|
|
|
+ }
|
|
|
+
|
|
|
public void addIncrementalBlockReport(long latency,
|
|
|
String rpcMetricSuffix) {
|
|
|
incrementalBlockReports.add(latency);
|