share library_books edit

Sematext-metrics-reporter is an extension for the Coda Hale Metrics library version 2.2.0 and 3.x for sending metrics to SPM.  Under the hood sematext-metrics Java library is used to send metrics as Custom Metrics to SPM.

Quick Start

To start sending metrics just create and start SematextMetricsReporter:

MetricRegistry metrics = new MetricRegistry();

SematextClient.initialize("spm token here");
SematextMetricsReporter reporter = SematextMetricsReporter.forClient(SematextClient.client())

reporter.start(1, TimeUnit.MINUTES);