prometheus.histogramQuantile() function

The prometheus.histogramQuantile() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

The prometheus.histogramQuantile() function calculates quantiles on a set of values assuming the given histogram data is scraped or read from a Prometheus data source.

Function type: Aggregate

import "experimental/prometheus"

  quantile: 0.99



A value between 0.0 and 1.0 indicating the desired quantile.

Data type: Float


Calculate the 99th quantile in Prometheus data

import "experimental/prometheus"

prometheus.scrape(url: "")
  |> prometheus.histogramQuantile(quantile: 0.99)

Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: