Class PercentileHistogramBuckets

java.lang.Object
io.micrometer.core.instrument.distribution.PercentileHistogramBuckets

public class PercentileHistogramBuckets
extends java.lang.Object
Generator for a set of histogram buckets intended for use by a monitoring system that supports aggregable percentile approximations such as Prometheus' histogram_quantiles or Atlas' :percentiles.
  • Constructor Summary

    Constructors 
    Constructor Description
    PercentileHistogramBuckets()  
  • Method Summary

    Modifier and Type Method Description
    static java.util.NavigableSet<java.lang.Double> buckets​(DistributionStatisticConfig distributionStatisticConfig)
    Pick values from a static set of percentile buckets that yields a decent error bound on most real world timers and distribution summaries because monitoring systems like Prometheus require us to report the same buckets at every interval, regardless of where actual samples have been observed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • buckets

      public static java.util.NavigableSet<java.lang.Double> buckets​(DistributionStatisticConfig distributionStatisticConfig)
      Pick values from a static set of percentile buckets that yields a decent error bound on most real world timers and distribution summaries because monitoring systems like Prometheus require us to report the same buckets at every interval, regardless of where actual samples have been observed.
      Parameters:
      distributionStatisticConfig - A configuration the governs how many buckets to produce based on its minimum and maximum expected values..
      Returns:
      The set of histogram buckets for use in computing aggregable percentiles.