package com.restfiddle.config.monitoring;

import com.codahale.metrics.ConsoleReporter;
import com.codahale.metrics.MetricRegistry;
import com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter;

import java.util.concurrent.TimeUnit;

/**
 * Created by santoshm1 on 28/06/14.
 */
public class MetricsConfig extends MetricsConfigurerAdapter{
    @Override
    public void configureReporters(MetricRegistry metricRegistry) {
	ConsoleReporter
			.forRegistry(metricRegistry)
			.build()
			.start(1, TimeUnit.MINUTES);
    }
}

@@ -184,32 +184,163 @@
 ion.
-MetricsConfigurerAdapter
+EnableMetrics;%0Aimport com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter;%0Aimport org.springframework.context.annotation.Configuration
 ;%0A%0Ai
@@ -422,12 +422,42 @@
 14.%0A
-
  */%0A
+@Configuration%0A@EnableMetrics%0A
 publ

Add annotations to begin logging to console