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

feat(processors.unpivot): new mode to create new metrics #12659

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Feb 9, 2023

Add mode settings to pivot processor to allow a user to create new metrics based on field names. The previous and default behavior would use the same metric name, but add the field as a tag.

fixes: #12652

@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/processor labels Feb 9, 2023
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 13, 2023
@powersj powersj marked this pull request as ready for review February 13, 2023 14:05
Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, I only do have one comment regarding the option. I'm not sure if the naming/usage is intuitive...

plugins/processors/unpivot/sample.conf Outdated Show resolved Hide resolved
Add mode settings to pivot processor to allow a user to create new
metrics based on field names. The previous and default behavior would
use the same metric name, but add the field as a tag.

fixes: influxdata#12652
@telegraf-tiger
Copy link
Contributor

Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this feature @powersj!

@srebhan srebhan merged commit ecfd367 into influxdata:master Feb 15, 2023
@srebhan srebhan added this to the v1.26.0 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/processor ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

processor: unpivot fields into new measurements
2 participants