Sends Metrics reporting to Amazon's CloudWatch.
Snapshots are in Sonatype repository.
"com.pongr" %% "metrics-amazon-cloudwatch" % "0.1-SNAPSHOT"
import com.codahale.metrics.MetricRegistry
import java.util.concurrent.TimeUnit
import com.pongr.metrics.amazoncloudwatch._
val metricRegistry = new MetricRegistry()
val cloudWatch = new AmazonCloudWatch(
accessKeyId = "access-key-id",
secretKey = "secret-key",
nameSpace = "your namespace",
dimensions = Map("host" -> "localhost")
)
val reporter = new AmazonCloudWatchReporter(cloudWatch, metricRegistry, TimeUnit.SECONDS, TimeUnit.MILLISECONDS)
reporter.start(20, TimeUnit.SECONDS)
metrics-amazon-cloudwatch is licensed under the Apache 2 License.