* @param all push all or only changed?
*/
@Override
public void getMetrics(MetricsBuilder metricsBuilder, boolean all) {
MetricsRecordBuilder mrb = metricsBuilder.addRecord(metricsName)
.setContext(metricsContext);
// fsWrap can be null because this function is called inside of init.
if (fsWrap != null) {
mrb.addGauge(ENTITYGROUP_COUNT, ENTITYGROUP_COUNT_DESC,fsWrap.getNumOnlineEntityGroups())
.addGauge(FS_START_TIME_NAME, FS_START_TIME_DESC, fsWrap.getStartCode())
.addCounter(READ_REQUEST_COUNT, READ_REQUEST_COUNT_DESC,
(int) fsWrap.getReadRequestsPerSecond())
.addCounter(WRITE_REQUEST_COUNT, WRITE_REQUEST_COUNT_DESC,
(int) fsWrap.getWriteRequestsPerSecond())