Details
Description
A number of useful numbers are emitted via the FSNamesystem JMX, but not through the metrics system. These would be useful to be able to track over time, e.g. to alert on via standard metrics systems or to view trends and rate changes:
- NumLiveDataNodes
- NumDeadDataNodes
- NumDecomLiveDataNodes
- NumDecomDeadDataNodes
- NumDecommissioningDataNodes
- NumStaleStorages
- VolumeFailuresTotal
- EstimatedCapacityLostTotal
- NumInMaintenanceLiveDataNodes
- NumInMaintenanceDeadDataNodes
- NumEnteringMaintenanceDataNodes
This is a simple change that just requires annotating the JMX methods with @Metric.