// Initiate Java VM metrics
JvmMetrics.init("NameNode", sessionId);
// Now the Mbean for the name node - this alos registers the MBean
namenodeStats = new NameNodeStatistics(this);
// Create a record for NameNode metrics
MetricsContext metricsContext = MetricsUtil.getContext("dfs");
metricsRecord = MetricsUtil.createRecord(metricsContext, "namenode");
metricsRecord.setTag("sessionId", sessionId);