Skip to main content

group_presence

Function group_presence 

Source
fn group_presence(
    operand: &Operand<'_>,
    labels: &MatchingLabels,
    points: usize,
    budget: Option<&mut Budget<'_>>,
) -> Result<HashMap<GroupKey, Vec<u64>>>
Expand description

The points at which each match group of operand holds a sample, one bit per grid point.

Prometheus decides a set operator at a step from the signatures present on the filter side, so a kept sample needs only whether its group is present at its point: built once from the filter side’s rows, that is one lookup per kept sample however many series share the group. A group’s bitmap is charged as the group is first met, before it is allocated.