* started; null if any failure.
*/
@Override
public MetricCollector getInstance() {
AWSCredentialsProvider provider = AwsSdkMetrics.getCredentialProvider();
Regions region = AwsSdkMetrics.getRegion();
Integer qSize = AwsSdkMetrics.getMetricQueueSize();
Long timeoutMilli = AwsSdkMetrics.getQueuePollTimeoutMilli();
CloudWatchMetricConfig config = new CloudWatchMetricConfig();
if (provider != null)
config.setCredentialsProvider(provider);
if (region != null) {
String endPoint = "monitoring." + region.getName() + ".amazonaws.com";
config.setCloudWatchEndPoint(endPoint);
}
if (qSize != null)
config.setMetricQueueSize(qSize.intValue());
if (timeoutMilli != null)