@@ -0,0 +1,1942 @@
+/*%0A * Copyright 2015 Attribyte, LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and limitations under the License.%0A *%0A */%0A%0Apackage org.attribyte.metrics.cloudwatch;%0A%0Aimport com.codahale.metrics.Counter;%0Aimport com.codahale.metrics.MetricRegistry;%0Aimport org.attribyte.metrics.RegistryTranslation;%0Aimport org.junit.Test;%0A%0Aimport java.io.FileInputStream;%0Aimport java.util.Properties;%0A%0Apublic class CloudwatchReporterTest %7B%0A%0A   @Test%0A   public void reportToCloudwatch() throws Exception  %7B%0A%0A      Properties secrets = new Properties();%0A      String userHome = System.getProperty(%22user.home%22);%0A      try(FileInputStream fis = new FileInputStream(userHome+%22/cwsecrets%22)) %7B%0A         secrets.load(fis);%0A      %7D%0A%0A      Properties props = new Properties(secrets);%0A      props.put(CloudwatchReporter.METRIC_NAMESPACE_PROPERTY, %22test01%22);%0A      props.put(RegistryTranslation.TRANSLATE_PREFIX + %22internal-counter-02%22, %22counter-02%22);%0A%0A      MetricRegistry registry = new MetricRegistry();%0A      Counter counter01 = registry.counter(%22internal-counter-01%22);%0A      counter01.inc(14L);%0A      Counter counter02 = registry.counter(%22internal-counter-02%22);%0A      counter02.inc(15L);%0A      Counter counter03 = registry.counter(%22internal-counter-03%22);%0A      counter03.inc(16L);%0A%0A      CloudwatchReporter reporter = new CloudwatchReporter();%0A      reporter.init(%22cloudwatch%22, props, registry, null); //No filter...%0A      reporter.start();%0A      Thread.sleep(61000L);%0A      reporter.stop();%0A   %7D%0A%7D%0A

Add cloudwatch reporter test. Requires manual verification...but have verified that the mechanics do work.