Permalink
Browse files

removed duplicate trouble causing metrics

  • Loading branch information...
1 parent bf37116 commit 53d3da7674be4ec4eb6a17beefaa2a12df474903 @traney traney committed May 17, 2012
@@ -79,6 +79,9 @@ public ModelAndView greetings(HttpServletRequest request, HttpServletResponse re
@RequestParam(value = "sticky", required = false) String sticky )
throws AuthException, SimpleDBException, BackplaneServerException {
+ // log metric
+ busGets.mark();
+
checkAuth(basicAuth, bus, Backplane1Config.BUS_PERMISSION.GETALL);
// log metric
@@ -582,25 +582,6 @@ public static String randomString(int length) {
public static final String AUTHZ_DECISION_KEY = "auth_key";
- private final MeterMetric posts =
- Metrics.newMeter(Backplane2Controller.class, "post", "posts", TimeUnit.MINUTES);
-
- private final MeterMetric channelGets =
- Metrics.newMeter(Backplane2Controller.class, "channel_get", "channel_gets", TimeUnit.MINUTES);
- private final MeterMetric channelGetsSticky = Metrics.newMeter(Backplane2Controller.class, "channel_gets_sticky", "channel_gets_sticky", TimeUnit.MINUTES);
-
-
- private final MeterMetric busGets =
- Metrics.newMeter(Backplane2Controller.class, "bus_get", "bus_gets", TimeUnit.MINUTES);
- private final MeterMetric busGetsSticky = Metrics.newMeter(Backplane2Controller.class, "bus_gets_sticky", "bus_gets_sticky", TimeUnit.MINUTES);
-
- private final TimerMetric getMessagesTime =
- Metrics.newTimer(Backplane2Controller.class, "get_messages_time", TimeUnit.MILLISECONDS, TimeUnit.MINUTES);
-
- private final HistogramMetric payLoadSizesOnGets = Metrics.newHistogram(Backplane2Controller.class, "payload_sizes_gets");
-
- private final HistogramMetric messagesPerChannel = Metrics.newHistogram(Backplane2Controller.class, "messages_per_channel");
-
@Inject
private Backplane2Config bpConfig;

0 comments on commit 53d3da7

Please sign in to comment.