Class Summary

  • All Implemented Interfaces:
    io.prometheus.client.Collector.Describable

    public class Summary
    extends io.prometheus.client.SimpleCollector<org.apache.pulsar.broker.stats.prometheus.metrics.Summary.Child>
    implements io.prometheus.client.Collector.Describable
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Summary.Builder  
      • Nested classes/interfaces inherited from class io.prometheus.client.Collector

        io.prometheus.client.Collector.Describable, io.prometheus.client.Collector.MetricFamilySamples, io.prometheus.client.Collector.Type
    • Field Summary

      • Fields inherited from class io.prometheus.client.SimpleCollector

        children, fullname, help, labelNames, noLabelsChild
      • Fields inherited from class io.prometheus.client.Collector

        MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Summary.Builder build()  
      static Summary.Builder build​(java.lang.String name, java.lang.String help)  
      java.util.List<io.prometheus.client.Collector.MetricFamilySamples> collect()  
      java.util.List<io.prometheus.client.Collector.MetricFamilySamples> describe()  
      protected org.apache.pulsar.broker.stats.prometheus.metrics.Summary.Child newChild()  
      void observe​(long eventLatency, java.util.concurrent.TimeUnit unit)  
      static void rotateLatencyCollection()  
      • Methods inherited from class io.prometheus.client.SimpleCollector

        clear, familySamplesList, initializeNoLabelsChild, labels, remove, setChild
      • Methods inherited from class io.prometheus.client.Collector

        checkMetricLabelName, checkMetricName, doubleToGoString, register, register, sanitizeMetricName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • build

        public static Summary.Builder build​(java.lang.String name,
                                            java.lang.String help)
      • newChild

        protected org.apache.pulsar.broker.stats.prometheus.metrics.Summary.Child newChild()
        Specified by:
        newChild in class io.prometheus.client.SimpleCollector<org.apache.pulsar.broker.stats.prometheus.metrics.Summary.Child>
      • observe

        public void observe​(long eventLatency,
                            java.util.concurrent.TimeUnit unit)
      • rotateLatencyCollection

        public static void rotateLatencyCollection()
      • collect

        public java.util.List<io.prometheus.client.Collector.MetricFamilySamples> collect()
        Specified by:
        collect in class io.prometheus.client.Collector
      • describe

        public java.util.List<io.prometheus.client.Collector.MetricFamilySamples> describe()
        Specified by:
        describe in interface io.prometheus.client.Collector.Describable