Skip to content

[Enhancement]: Make prometheus v2/v3 opt in #1016

@lorenzofelletti

Description

@lorenzofelletti

What's the general idea for the enhancement?

#1008 rightfully changed mixin rules not handling normalised buckets in Prometheus v3.
However the change involved switching to regex matching for bucket matching, which is more computationally intensive than the = selector.

I propose to change this by introducing a mechanism (e.g. config parameter) to target v2 or v3-style rules, thus removing the necessity to use a regular expression. This would positively impact performance for all users, as some of these expressions are already quite expensive to compute.

Please provide any helpful snippets.

What parts of the codebase does the enhancement target?

Rules

Anything else relevant to the enhancement that would help with the triage process?

No response

I agree to the following terms:

  • I agree to follow this project's Code of Conduct.
  • I have filled out all the required information above to the best of my ability.
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have confirmed this proposal applies to the default branch of the repository, as of the latest commit at the time of submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    keepaliveUse to prevent automatic closing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions