Class PulsarPrometheusMetricsServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet
org.apache.pulsar.broker.stats.prometheus.PulsarPrometheusMetricsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PulsarPrometheusMetricsServlet extends org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet
See Also:
  • Field Summary

    Fields inherited from class org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet

    metricsProviders
  • Constructor Summary

    Constructors
    Constructor
    Description
    PulsarPrometheusMetricsServlet(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean shouldExportProducerMetrics, boolean splitTopicAndPartitionLabel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    generateMetrics(String cluster, javax.servlet.ServletOutputStream outputStream)
     

    Methods inherited from class org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet

    addRawMetricsProvider, destroy, doGet, init

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    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

    • PulsarPrometheusMetricsServlet

      public PulsarPrometheusMetricsServlet(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean shouldExportProducerMetrics, boolean splitTopicAndPartitionLabel)
  • Method Details

    • generateMetrics

      protected void generateMetrics(String cluster, javax.servlet.ServletOutputStream outputStream) throws IOException
      Overrides:
      generateMetrics in class org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet
      Throws:
      IOException