|
@@ -107,6 +107,7 @@ public class DataNodeMetrics {
|
|
|
@Metric MutableRate copyBlockOp;
|
|
|
@Metric MutableRate replaceBlockOp;
|
|
|
@Metric MutableRate heartbeats;
|
|
|
+ @Metric MutableRate heartbeatsTotal;
|
|
|
@Metric MutableRate lifelines;
|
|
|
@Metric MutableRate blockReports;
|
|
|
@Metric MutableRate incrementalBlockReports;
|
|
@@ -200,6 +201,10 @@ public class DataNodeMetrics {
|
|
|
heartbeats.add(latency);
|
|
|
}
|
|
|
|
|
|
+ public void addHeartbeatTotal(long latency) {
|
|
|
+ heartbeatsTotal.add(latency);
|
|
|
+ }
|
|
|
+
|
|
|
public void addLifeline(long latency) {
|
|
|
lifelines.add(latency);
|
|
|
}
|