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

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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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