Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: Replace a label value based on regexp #26497

Closed
2 tasks
Dhivya247 opened this issue Sep 7, 2023 · 0 comments
Closed
2 tasks

New component: Replace a label value based on regexp #26497

Dhivya247 opened this issue Sep 7, 2023 · 0 comments
Labels
needs triage New item requiring triage Sponsor Needed New component seeking sponsor

Comments

@Dhivya247
Copy link

The purpose and use-cases of the new component

In Metrics transform Processor, request to create a component to replace dimension/label value based on regexp.
Currently we are reducing cardinality of a metrics by aggregating it based on regexp.
eg : - replace_all_matches(attributes, "/user//list/", "/user/{userId}/list/{listId}")

Similar to this do we have an option to replace/update the label/dimension values.
Value Actions take input only as a string not as regexp in Metrics transform processors

Example configuration for the component

        value_actions:
          - match_type: regexp
          - value: "^.*$"
          - new_value: ".*?(?=/)"

Telemetry data types supported

Metrics

Is this a vendor-specific component?

  • This is a vendor-specific component
  • If this is a vendor-specific component, I am proposing to contribute and support it as a representative of the vendor.

Code Owner(s)

No response

Sponsor (optional)

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New item requiring triage Sponsor Needed New component seeking sponsor
Projects
None yet
Development

No branches or pull requests

1 participant