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 TypeMethodDescriptioncom.codahale.metrics.ScheduledReportercreateMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, String reporterName, com.codahale.metrics.MetricFilter metricFilter, ScheduledExecutorService executorService) com.codahale.metrics.MetricFiltergetMetricFilter(Map<String, String> filters)
-
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 providedreporterNameand using providedmetricFilter. The thread that is used to send metric values should use providedexecutorService
-
getMetricFilter
- Parameters:
filters- Map of filter definitions that should be recalculated into one instance ofMetricFilter- Returns:
- the instance of
MetricFilterthat will take into account all provided filter definitions
-