final List<MetricObserver> observers = new ArrayList<MetricObserver>();
observers.add(createGraphiteObserver());
//observers.add(createCloudWatchObserver());
final MetricPoller poller = new MonitorRegistryMetricPoller();
final PollRunnable task = new PollRunnable(poller, BasicMetricFilter.MATCH_ALL, observers);
PollScheduler.getInstance().start();
PollScheduler.getInstance().addPoller(task, config.getLong("metrics.poll.interval", 30), TimeUnit.SECONDS);
}