An open API service indexing awesome lists of open source software.

https://github.com/sematext/sematext-metrics-reporter

Coda Metrics SPM Reporter
https://github.com/sematext/sematext-metrics-reporter

Last synced: 8 months ago
JSON representation

Coda Metrics SPM Reporter

Awesome Lists containing this project

README

          

sematext-metrics-reporter[![Build Status](https://travis-ci.org/sematext/sematext-metrics-reporter.png?branch=master)](https://travis-ci.org/sematext/sematext-metrics-reporter)
====

[Coda Hale Metrics](http://metrics.codahale.com/) Reporter that uses [Sematext Metrics](http://github.com/sematext/sematext-metrics) library to send metrics to [SPM](http://sematext.com/spm/index.html) as [Custom Metrics](https://sematext.atlassian.net/wiki/display/PUBSPM/Custom+Metrics)

## Usage
Add maven dependency:


com.sematext
sematext-metrics-reporter
0.1.3.0.0

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