public List<String> getMetricReporterNames() {
    Optional<String> metricReporterNamesValue = Optional.ofNullable(get(METRICS_REPORTERS));
    if (!metricReporterNamesValue.isPresent() || metricReporterNamesValue.get().isEmpty()) {
      return Collections.emptyList();
    } else {
      return Stream.of(metricReporterNamesValue.get().split(",")).map(String::trim).collect(Collectors.toList());
    }
  }
Helper class for accessing configs related to metrics.
samza-core/src/main/java/org/apache/samza/config/MetricsConfig.java