Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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())
  .withFilter(MetricFilter.ALL)
  .withRegistry(metrics)
  .withDurationUnit(TimeUnit.MILLISECONDS)
  .build();

reporter.start(1, TimeUnit.MINUTES);
  • No labels