Package org.fcrepo.http.commons.metrics
Class PrometheusMetricsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
io.prometheus.client.exporter.MetricsServlet
org.fcrepo.http.commons.metrics.PrometheusMetricsServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
This class is an extension of Prometheus's MetricsServlet. It only exists because there isn't an easy way to
set the CollectorRegistry on with a Spring bean.
- Author:
- pwinckles
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.prometheus.client.exporter.MetricsServlet
doGet, doPostMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
PrometheusMetricsServlet
public PrometheusMetricsServlet()
-
-
Method Details
-
init
- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-