Exemplo n.º 1
0
 /** @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());
 }
Exemplo n.º 2
0
 /** @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);
 }