Skip to content

[receiver/statsd] allow customizing metric_type attribute name #40339

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

neonmei
Copy link

@neonmei neonmei commented May 28, 2025

Description

Currently the receiver allows annotating the metric_type by setting enable_metric_type to true. This attribute might be in use by an application and should be customizable.

This PR introduces a new metric_type_attribute which allows using a custom attribute name for users that may be already be using metric_type for their metrics.

Link to tracking issue

No tracking issue

Testing

Added a couple of test cases which validate the attribute is set to the custom name, the case where the attribute is unset is already thoroughly tested.

Documentation

Documented the new metric_type_attributein the README.me

Copy link

linux-foundation-easycla bot commented May 28, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the receiver/statsd statsd related issues label May 28, 2025
@github-actions github-actions bot requested review from dmitryax and jmacd May 28, 2025 00:26
@neonmei neonmei marked this pull request as ready for review May 28, 2025 00:33
@neonmei neonmei requested a review from a team as a code owner May 28, 2025 00:33
@neonmei neonmei force-pushed the feature/statsdreceiver-custom-metrictype-attr branch from af8c2e2 to ce3e5f7 Compare May 28, 2025 23:35
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 12, 2025
@neonmei neonmei force-pushed the feature/statsdreceiver-custom-metrictype-attr branch from 4634b8f to 7a51923 Compare June 12, 2025 22:50
@github-actions github-actions bot removed the Stale label Jun 13, 2025
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

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

Successfully merging this pull request may close these issues.

3 participants