File metricsFile = Util.getOutputFileRollOldOne(metricsFileName);
HBaseAdmin hbaseAdmin = new HBaseAdmin(getHBaseConf());
hbaseMetrics = new HBaseMetrics(hbaseAdmin);
lilyMetrics = new LilyMetrics(getZooKeeper());
ListMetricsPlugin plugins = new ListMetricsPlugin();
HBaseMetricsPlugin metricsPlugin = new HBaseMetricsPlugin(hbaseMetrics, hbaseAdmin, useHbaseMetrics);
plugins.add(metricsPlugin);
addMetricsPlugins(plugins);