Last active
August 29, 2015 14:04
-
-
Save Sennahoi/26b540b1e186690197af to your computer and use it in GitHub Desktop.
MetricsServlet (metrics.codahale.com/) configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MetricRegistry metricRegistry = new MetricRegistry(); | |
ctx.getServletContext().setAttribute("com.codahale.metrics.servlets.MetricsServlet.registry", metricRegistry); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servlet> | |
<servlet-name>MetricsServlet</servlet-name> | |
<servlet-class>com.codahale.metrics.servlets.MetricsServlet</servlet-class> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>MetricsServlet</servlet-name> | |
<url-pattern>/metrics</url-pattern> | |
</servlet-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment