Skip to content

[cmd/mdatagen] Ability to filter by resource attribute values #25134

Closed as not planned
@dmitryax

Description

There are some scenarios when scrapers emit metrics for too many different resource attributes. We need to introduce a configuration interface generated and applied to every item in resource_attributes section that users can use to reduce the set of emitted resource attribute metrics.

We already have an option to disable resource attributes like this:

resource_attributes:
  process.command_line:
    enabled: false

We can add an option to filter resource metrics in the same configuration section.

So user can do the following:

resource_attributes:
  process.command_line:
    include:
      - "/home/dir/*"
  process.owned:
    exclude:
      - "root"

The exact filtering interface is still to be defined.

Originally suggested in #8188 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions