Class PrometheusDistributionSummary

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractDistributionSummary
io.micrometer.prometheus.PrometheusDistributionSummary
All Implemented Interfaces:
io.micrometer.core.instrument.distribution.HistogramSupport, io.micrometer.core.instrument.DistributionSummary, io.micrometer.core.instrument.Meter

@Deprecated public class PrometheusDistributionSummary extends io.micrometer.core.instrument.AbstractDistributionSummary
Deprecated.
since 1.13.0, use the class with the same name from io.micrometer:micrometer-registry-prometheus instead: io.micrometer.prometheusmetrics.PrometheusDistributionSummary.
DistributionSummary for Prometheus.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.DistributionSummary

    io.micrometer.core.instrument.DistributionSummary.Builder

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter

    io.micrometer.core.instrument.Meter.Builder, io.micrometer.core.instrument.Meter.Id, io.micrometer.core.instrument.Meter.MeterProvider<T extends io.micrometer.core.instrument.Meter>, io.micrometer.core.instrument.Meter.Type
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Deprecated.
     
    io.micrometer.core.instrument.distribution.CountAtBucket[]
    Deprecated.
    For Prometheus we cannot use the histogram counts from HistogramSnapshot, as it is based on a rolling histogram.
    Deprecated.
     
    double
    max()
    Deprecated.
     
    protected void
    recordNonNegative(double amount)
    Deprecated.
     
    io.micrometer.core.instrument.distribution.HistogramSnapshot
    Deprecated.
     
    double
    Deprecated.
     

    Methods inherited from class io.micrometer.core.instrument.AbstractDistributionSummary

    defaultHistogram, record

    Methods inherited from class io.micrometer.core.instrument.AbstractMeter

    equals, getId, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.DistributionSummary

    histogramCountAtValue, mean, measure, percentile

    Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport

    takeSnapshot

    Methods inherited from interface io.micrometer.core.instrument.Meter

    close, getId, match, use
  • Method Details

    • recordNonNegative

      protected void recordNonNegative(double amount)
      Deprecated.
      Specified by:
      recordNonNegative in class io.micrometer.core.instrument.AbstractDistributionSummary
    • count

      public long count()
      Deprecated.
    • totalAmount

      public double totalAmount()
      Deprecated.
    • max

      public double max()
      Deprecated.
    • histogramFlavor

      public HistogramFlavor histogramFlavor()
      Deprecated.
    • histogramCounts

      public io.micrometer.core.instrument.distribution.CountAtBucket[] histogramCounts()
      Deprecated.
      For Prometheus we cannot use the histogram counts from HistogramSnapshot, as it is based on a rolling histogram. Prometheus requires a histogram that accumulates values over the lifetime of the app.
      Returns:
      Cumulative histogram buckets.
    • takeSnapshot

      public io.micrometer.core.instrument.distribution.HistogramSnapshot takeSnapshot()
      Deprecated.
      Specified by:
      takeSnapshot in interface io.micrometer.core.instrument.distribution.HistogramSupport
      Overrides:
      takeSnapshot in class io.micrometer.core.instrument.AbstractDistributionSummary