Closed donbourne closed 11 months ago
based on experimentation with micrometer api and prometheusMeterRegistry:
so effectively, if the metric has buckets a histogram is produced from PrometheusMeterRegistry.scrape() else a summary is produced.
Based on the above comment, we could add histogram buckets without breaking backward compatibility. When histograms are configured to be part of the metric a histogram output type would be used. When there are no buckets, a summary would be used (same behavior for this case as in MP Metrics 5.0)
MP Metrics histograms don't actually provide the data expected of a histogram in their data representation or their output. Histograms are expected to summarize the count of data points that fall into a set of buckets. Currently MP Metrics histograms provide data on percentiles, but do not provide bucket counts.
I propose the following:
histogram
type (currently it usessummary
type)from https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-example : prometheus histogram
prometheus summary
For reference, using Micrometer's
DistributionSummary
withserviceLevelObjectives
specified and aPrometheusMeterRegistry
, thePrometheusMeterRegistry.scrape
output produces a Prometheushistogram
: