Skip to content

Do not have regexp support for metricAnnotationsAllowList #2901

@chownx1

Description

@chownx1

What would you like to be added:

Support wildcard or regex matching in --metric-annotations-allowlist, for example:

  • pods=[monitoring.vmagent.io/*]
  • pods=[^monitoring\.vmagent\.io/.*$]

Why is this needed:

Many annotation keys share a common prefix, but today they must be listed one by one. This is hard to maintain and does not work well for dynamic annotation names.

Describe the solution you'd like:

Allow filtering annotation keys by prefix or regex in --metric-annotations-allowlist, while keeping support for exact matches.

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions