Loading

Histogram functions

These functions operate on histogram metrics.

Returns the φ-quantile of a classic histogram represented by cumulative le buckets.

Return type

instant_vector

Parameters

φ (scalar)
Quantile value (0 ≤ φ ≤ 1).
v (instant_vector)
Instant vector input.

Example

histogram_quantile(0.9, rate(http_request_duration_seconds_bucket[5m]))
		

Differences from Prometheus

Only classic histograms, represented by cumulative le bucket series, are supported. Prometheus native histograms are not supported.