Class GaugeSupplierCollector

java.lang.Object
io.prometheus.client.Collector
io.prometheus.client.SimpleCollector<GaugeSupplierCollector.Child>
tech.ydb.yoj.repository.ydb.metrics.GaugeSupplierCollector
All Implemented Interfaces:
io.prometheus.client.Collector.Describable

public class GaugeSupplierCollector extends io.prometheus.client.SimpleCollector<GaugeSupplierCollector.Child> implements io.prometheus.client.Collector.Describable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    class 
     

    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

    Modifier and Type
    Method
    Description
     
    List<io.prometheus.client.Collector.MetricFamilySamples>
     
    List<io.prometheus.client.Collector.MetricFamilySamples>
     
     
    void
     

    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 Details

    • build

      public static GaugeSupplierCollector.Builder build()
    • collect

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

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

      protected GaugeSupplierCollector.Child newChild()
      Specified by:
      newChild in class io.prometheus.client.SimpleCollector<GaugeSupplierCollector.Child>
    • supplier

      public void supplier(Supplier<Number> supplier)