PollScheduler.getInstance().start();
PollScheduler.getInstance().addPoller(task, config.getLong("metrics.poll.interval", 30), TimeUnit.SECONDS);
}
private MetricObserver createCloudWatchObserver() {
return new CloudWatchMetricObserver("FluxMetricsObserver", "Flux",
new DefaultAWSCredentialsProviderChain());
}