Class PulsarPrometheusMetricsServlet

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

    public class PulsarPrometheusMetricsServlet
    extends org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsServlet
    See Also:
    Serialized Form
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void generateMetrics​(java.lang.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 Detail

      • PulsarPrometheusMetricsServlet

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

      • generateMetrics

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