Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 791 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 791 Bytes

Metrics Datadog Reporter

Simple Metrics reporter that sends reporting info to Datadog.

Usage

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)

Maven Info

Metrics datadog reporter is available as an artifact on Maven Central

  • Group: org.coursera
  • Artifact: metrics-datadog
  • Version: 0.1.6