Skip to main content

k_param

Function k_param 

Source
pub(crate) fn k_param(k: f64, series: usize) -> Result<Option<usize>>
Expand description

The k of topk, bottomk and limitk as Prometheus reads it: nothing for k below 1, an error for NaN or a value out of int64, otherwise k truncated and capped at the number of input series.