Class PrometheusMetricsServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class PrometheusMetricsServlet
    extends io.prometheus.client.exporter.MetricsServlet
    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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(javax.servlet.ServletConfig config)  
      • Methods inherited from class io.prometheus.client.exporter.MetricsServlet

        doGet, doPost
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException