otel_histogram_quantile¶
Description¶
Compute quantiles on OpenTelemetry histogram objects.
Return type¶
float64
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
otel_histogram_quantile(histogram, quantile)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
histogram |
object |
no |
no |
none |
quantile |
float64 |
no |
no |
constant |
Examples¶
align o: otel_histogram_sum(m_histogram("latency"), false)
aggregate o: otel_histogram_quantile(otel_histogram_sum(o), 0.1), group_by(^Cluster...)
For each cluster, compute the 0.1-quantiles of the OpenTelemetry histogram metric named “latency”.