Coda Metrics SPM Reporter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/com/sematext/metrics/coda
.gitignore
.travis.yml
LICENSE.txt
README.md
pom.xml

README.md

sematext-metrics-reporterBuild Status

Coda Hale Metrics Reporter that uses Sematext Metrics library to send metrics to SPM as Custom Metrics

Usage

Add maven dependency:

<dependency>
  <groupId>com.sematext</groupId>
  <artifactId>sematext-metrics-reporter</artifactId>
  <version>0.1.3.0.0</version>
</dependency>

And configure reporter:

MetricRegistry metrics = new MetricRegistry();

SematextClient.initialize("[spm-token]");
SematextMetricsReporter reporter = SematextMetricsReporter.forClient(SematextClient.client())
  .withFilter(MetricFilter.ALL)
  .withRegistry(metrics)
  .withDurationUnit(TimeUnit.MILLISECONDS)
  .build();

reporter.start(1, TimeUnit.MINUTES);

License

Copyright 2013 Sematext Group, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0