Skip to content

Commit

Permalink
Fix config error for MetricsServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Huang committed Apr 9, 2014
1 parent 6028f7c commit 00ee1cf
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -466,8 +466,8 @@ private void deployMetricsAdmin(final RexsterApplication application) {
// deploys the metrics servlet into rexster
wacMetrics = new WebappContext("metrics", "");
wacMetrics.setAttribute("com.codahale.metrics.servlets.MetricsServlet.registry", application.getMetricRegistry());
wacMetrics.setAttribute("com.codahale.metrics.servlets.MetricsServlet.rateUnit", this.convertRateTo);
wacMetrics.setAttribute("com.codahale.metrics.servlets.MetricsServlet.durationUnit", this.convertDurationTo);
wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.rateUnit", this.convertRateTo);
wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.durationUnit", this.convertDurationTo);

final ServletRegistration sgMetrics = wacMetrics.addServlet("metrics", new MetricsServlet());
sgMetrics.addMapping("/metrics/*");
Expand Down

0 comments on commit 00ee1cf

Please sign in to comment.