@@ -1607,11 +1607,6 @@ the latter, refer to the PromQL documentation about
1607
1607
and
1608
1608
[ functions] ( https://prometheus.io/docs/prometheus/latest/querying/functions/ ) .
1609
1609
1610
- TODO: The Prometheus PromQL implementation is currently lagging behind what's
1611
- described in this section. This is not called out separately further down for
1612
- all cases. See [ tracking
1613
- issue] ( https://github.com/prometheus/prometheus/issues/13934 ) for details.
1614
-
1615
1610
### Annotations
1616
1611
1617
1612
The introduction of native histograms creates certain situations where a PromQL
@@ -1903,7 +1898,6 @@ histogram to gauge histogram and vice versa does not count as a change for
1903
1898
histograms, but the function still works with gauge histograms, applying
1904
1899
explicit counter reset detection in this case. Furthermore, a change from
1905
1900
counter histogram to gauge histogram and vice versa is counted as a reset.
1906
- (TODO: Not implemented yet.)
1907
1901
1908
1902
The ` histogram_quantile() ` function has a very special role as it is the only
1909
1903
function that treats a specific “magic” label specially, namely the ` le ` label
@@ -1998,8 +1992,7 @@ definition of the schema of the histogram.
1998
1992
1999
1993
The following functions do not interact directly with sample values and
2000
1994
therefore work with native histogram samples in the same way as they work with
2001
- float samples: (TODO: Still need to verify that this is true for all of the
2002
- functions below. Need to update the documentation for some of them.)
1995
+ float samples:
2003
1996
2004
1997
- ` absent() `
2005
1998
- ` absent_over_time() `
@@ -2014,14 +2007,12 @@ functions below. Need to update the documentation for some of them.)
2014
2007
- ` timestamp() `
2015
2008
2016
2009
All remaining functions not mentioned in this section do _ not_ work with native
2017
- histograms. Histogram elements in the input vector are silently ignored. (TODO:
2018
- Make sure this is the case, rather than treating histogram samples as floats
2019
- with value 0.) For ` deriv() ` , ` double_exponential_smoothing() ` ,
2020
- ` predict_linear() ` , and all the ` <aggregation>_over_time() ` functions not
2021
- mentioned before, native histogram samples are removed from the input range
2022
- vector. In case any series contains a mix of float samples and histogram
2023
- samples within the range, the removal of histograms is flagged by an info-level
2024
- annotation.
2010
+ histograms. Histogram elements in the input vector are silently ignored. For
2011
+ ` deriv() ` , ` double_exponential_smoothing() ` , ` predict_linear() ` , and all the
2012
+ ` <aggregation>_over_time() ` functions not mentioned before, native histogram
2013
+ samples are removed from the input range vector. In case any series contains a
2014
+ mix of float samples and histogram samples within the range, the removal of
2015
+ histograms is flagged by an info-level annotation.
2025
2016
2026
2017
### Recording rules
2027
2018
0 commit comments