hbaseMetrics = new HBaseMetrics(hbaseAdmin);
lilyMetrics = new LilyMetrics(getZooKeeper());
ListMetricsPlugin plugins = new ListMetricsPlugin();
HBaseMetricsPlugin metricsPlugin = new HBaseMetricsPlugin(hbaseMetrics, hbaseAdmin, useHbaseMetrics);
plugins.add(metricsPlugin);
addMetricsPlugins(plugins);
metricsStream = new PrintStream(new FileOutputStream(metricsFile));
metrics = new Metrics(metricsStream, plugins);