Commits

Micha Kops committed b942de8

Obsolete gauge references removed.

  • Participants
  • Parent commits 5b21258

Comments (0)

Files changed (1)

src/main/java/com/hascode/tutorial/ejb/ExampleMetricsBean.java

 	private MetricsRegistry registry;
 	private Counter repositoriesParsed;
 	private AtomicLong reqSent;
-	private Gauge<AtomicLong> numReqSend;
 	private JmxReporter reporter;
 	private Timer pageProcTimer;
 
 		registry = new MetricsRegistry();
 		repositoriesParsed = registry.newCounter(ExampleMetricsBean.class, "Repositories-Parsed");
 		pageProcTimer = registry.newTimer(ExampleMetricsBean.class, "Processing-Page-Time");
-		numReqSend = registry.newGauge(new MetricName(ExampleMetricsBean.class, "Requests-Send-Total"), new Gauge<AtomicLong>() {
+		registry.newGauge(new MetricName(ExampleMetricsBean.class, "Requests-Send-Total"), new Gauge<AtomicLong>() {
 			@Override
 			public AtomicLong value() {
 				return reqSent;