Skip to main content

histogram_quantile Metrics Operator

The histogram_quantile operator calculates the φ-quantile (0 ≤ φ ≤ 1) from the buckets of a histogram. This operator is specific to the Prometheus Histogram data type and does not work with non-Prometheus histograms. It is equivalent to the PromQL histogram_quantile() operator.

Syntax​

histogram_quantile(quantile)

Examples​

Calculate the 99th and 50th quantile​

* | histogram_quantile(.99)

The following query calculates the 50th quantile:

* | histogram_quantile(.5)

Convert a PromQL histogram_quantile query​

The following PromQL query measures the 99th quantile of the apiserver_request_latencies histogram:

histogram_quantile(0.99, rate(apiserver_request_latencies_bucket{}[5m]))

It would be written in Sumo Logic as:

metric=apiserver_request_latencies_bucket | quantize using max | delta | histogram_quantile(0.99)
note

You must include the quantize and delta operators to get the same results as the PromQL query would produce.

Legal
Privacy Statement
Terms of Use
CA Privacy Notice

© 2010 – 2026 Sumo Logic, Inc.