Simple Metrics reporter that sends reporting info to Datadog.
import com.yammer.metrics.reporting.DatadogReporter
import com.yammer.metrics.reporting.DatadogReporter.Expansions._
...
val expansions = EnumSet.of(COUNT, RATE_1_MINUTE, RATE_15_MINUTE, MEDIAN, P95, P99)
val reporter = new DatadogReporter.Builder()
.withEC2Host()
.withApiKey(apiKey)
.withExpansions(expansions)
.withMetricNameFormatter(ShortenedNameFormatter)
.build()
reporter.start(10, TimeUnit.SECONDS)
Metrics datadog reporter is available as an artifact on Maven Central
- Group: org.coursera
- Artifact: metrics-datadog
- Version: 0.1.6