Skip to main content

count_values

Function count_values 

Source
pub fn count_values(
    schema: &Arc<SeriesSchema>,
    input: &[Series],
    label: &str,
    grouping: Grouping<'_>,
) -> Result<Vec<Series>>
Expand description

count_values(label, v): at each grid point, the number of samples in each group of series that share a value, with the value written to label in Prometheus’ FormatFloat(v, 'f', -1) form, or for a native histogram as its FloatHistogram.String. With by, label is part of the grouping; with without, it is dropped if listed.