@Override
  public MetricsReporter getMetricsReporter(String name, String processorId, Config config) {
    ScheduledExecutorService scheduledExecutorService = Executors.newSingleThreadScheduledExecutor(
        new ThreadFactoryBuilder().setNameFormat("Samza LoggingMetricsReporter Thread-%d").setDaemon(true).build());
    LoggingMetricsReporterConfig loggingMetricsReporterConfig = new LoggingMetricsReporterConfig(config);
    Pattern metricsToLog = Pattern.compile(loggingMetricsReporterConfig.getMetricsToLogRegex(name));
    return new LoggingMetricsReporter(scheduledExecutorService, metricsToLog,
        loggingMetricsReporterConfig.getLoggingIntervalSeconds(name));
  }
Creates a {@link MetricsReporter} which logs metrics and their values.
This can be used to access metric values when no other external metrics system is available.
samza-core/src/main/java/org/apache/samza/metrics/reporter/LoggingMetricsReporterFactory.java