@Override public void start(Configuration conf) { super.start(conf); Integer httpPort = conf.getInteger("codahaleStatsHttpPort", null); if (null != httpPort) { servletReporter = new ServletReporter( getMetrics(), healthCheckRegistry, httpPort); try { servletReporter.start(); } catch (Exception e) { logger.warn("Encountered error on starting the codahale metrics servlet", e); } } }
@Override public void start(Configuration conf) { super.start(conf); Integer httpPort = conf.getInteger("codahaleStatsHttpPort", null); if (null != httpPort) { servletReporter = new ServletReporter( getMetrics(), healthCheckRegistry, httpPort); try { servletReporter.start(); } catch (Exception e) { logger.warn("Encountered error on starting the codahale metrics servlet", e); } } }