﻿---
title: Histogram functions
description: PromQL histogram functions in Elasticsearch.
url: https://www.elastic.co/elastic/docs-builder/docs/3562/reference/query-languages/promql/functions/histogram
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Preview in 9.4
---

# Histogram functions
These functions operate on histogram metrics.

## `histogram_quantile`

<applies-to>Elastic Stack: Planned</applies-to>
Returns the φ-quantile of a classic histogram represented by cumulative `le` buckets.
**Return type**
`instant_vector`
**Parameters**
<definitions>
  <definition term="φ (scalar)">
    Quantile value (0 ≤ φ ≤ 1).
  </definition>
  <definition term="v (instant_vector)">
    Instant vector input.
  </definition>
</definitions>

**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.