Skip to content

Push boolean operations into scanners #338

Open
@fpetkovski

Description

@fpetkovski

Certain PromQL expression can be considered as (sample) selectors and can be evaluated directly in scanners.

One example is:

sum(kube_pod_info == 1)

For this query, we could apply == 1 directly into the vector_selector (maybe we should rename this to vector_scanner) and avoid emitting samples which do not match that binary operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions