Class PrometheusMetricsServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.prometheus.metrics.exporter.servlet.jakarta.PrometheusMetricsServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class PrometheusMetricsServlet extends jakarta.servlet.http.HttpServlet
Initial example exporter so that we can try the new metrics library out.

We'll add a Jakarta servlet, the built-in HTTPServer, etc. soon, and likely move common code into a common module.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException