/** @return a Reporter which publishes metrics to a Graphite server */ @Bean public GraphiteReporter graphiteReporter() { final MetricsConfig cfg = new MetricsConfig(); final String prefix = METRIC_PREFIX; return cfg.reporterFactory().getGraphiteReporter(prefix, graphiteClient()); }
/** @return a Reporter that exposes metrics under the "org.fcrepo" prefix */ @Bean public JmxReporter jmxReporter() { final MetricsConfig cfg = new MetricsConfig(); final String prefix = METRIC_PREFIX; return cfg.reporterFactory().getJmxReporter(prefix); }