Class HistogramGauges

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

@Incubating(since="1.0.3")
public class HistogramGauges
extends java.lang.Object
  • Method Details

    • registerWithCommonFormat

      public static HistogramGauges registerWithCommonFormat​(Timer timer, MeterRegistry registry)
      Register a set of gauges for percentiles and histogram buckets that follow a common format when the monitoring system doesn't have an opinion about the structure of this data.
      Parameters:
      timer - the timer from which to derive gauges
      registry - the registry to register the gauges
      Returns:
      registered HistogramGauges
    • registerWithCommonFormat

      public static HistogramGauges registerWithCommonFormat​(LongTaskTimer ltt, MeterRegistry registry)
      Register a set of gauges for percentiles and histogram buckets that follow a common format when the monitoring system doesn't have an opinion about the structure of this data.
      Parameters:
      ltt - the long task timer from which to derive gauges
      registry - the registry to register the gauges
      Returns:
      registered HistogramGauges
      Since:
      1.5.0
    • registerWithCommonFormat

      public static HistogramGauges registerWithCommonFormat​(DistributionSummary summary, MeterRegistry registry)
    • register

      public static HistogramGauges register​(HistogramSupport meter, MeterRegistry registry, java.util.function.Function<ValueAtPercentile,​java.lang.String> percentileName, java.util.function.Function<ValueAtPercentile,​java.lang.Iterable<Tag>> percentileTags, java.util.function.Function<ValueAtPercentile,​java.lang.Double> percentileValue, java.util.function.Function<CountAtBucket,​java.lang.String> bucketName, java.util.function.Function<CountAtBucket,​java.lang.Iterable<Tag>> bucketTags)