@Override
  public Monitor getMonitorInstance(String monitorName, MonitorConfig config, MetricsRegistry metricsRegistry) throws Exception {
    LocalStoreMonitorConfig monitorConfig = new LocalStoreMonitorConfig(config);
    LocalStoreMonitorMetrics localStoreMonitorMetrics = new LocalStoreMonitorMetrics(String.format("%s-", monitorName), metricsRegistry);
    JobsClient jobsClient = new JobsClient(monitorConfig.getJobStatusServers());
    return new LocalStoreMonitor(monitorConfig, localStoreMonitorMetrics, jobsClient);
  }
Factory to build {@link LocalStoreMonitor} using provided config.
samza-rest/src/main/java/org/apache/samza/monitor/LocalStoreMonitorFactory.java