Interface MetricsReporterFactory

All Known Implementing Classes:
Slf4jMdcMetricsReporterFactory

public interface MetricsReporterFactory
Interface for metric reporter factory. The implementations of this interface should be able to create metric reporters - objects that will be responsible for sending gathered metrics to other systems
  • Method Summary

    Modifier and Type
    Method
    Description
    com.codahale.metrics.ScheduledReporter
    createMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, String reporterName, com.codahale.metrics.MetricFilter metricFilter, ScheduledExecutorService executorService)
     
    com.codahale.metrics.MetricFilter
     
  • Method Details

    • createMetricReporter

      com.codahale.metrics.ScheduledReporter createMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, String reporterName, com.codahale.metrics.MetricFilter metricFilter, ScheduledExecutorService executorService)
      Returns:
      new metric reporter for provided metricRegistry, with provided reporterName and using provided metricFilter. The thread that is used to send metric values should use provided executorService
    • getMetricFilter

      com.codahale.metrics.MetricFilter getMetricFilter(Map<String,String> filters)
      Parameters:
      filters - Map of filter definitions that should be recalculated into one instance of MetricFilter
      Returns:
      the instance of MetricFilter that will take into account all provided filter definitions