add number of live and dead datanode to the measurements to be able to get their value in graphite
@@ -4722,11 +4722,15 @@ void shutdown() {
@Override // FSNamesystemMBean
+ @Metric({"LiveDataNodes",
+ "Number of datanodes marked as live"})
public int getNumLiveDataNodes() {
return getBlockManager().getDatanodeManager().getNumLiveDataNodes();
}
@Override // FSNamesystemMBean
+ @Metric({"DeadDataNodes",
+ "Number of datanodes marked dead due to delayed heartbeat"})
public int getNumDeadDataNodes() {
return getBlockManager().getDatanodeManager().getNumDeadDataNodes();
}
