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 2 Next »

Sematext-metrics-reporter is opensource Codahale Metrics Library extension for sending metrics to SPM.

Quick start

To start sending metrics, gathered by metrics library, just create and start SematextMetricsReporter.

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);
  • No labels