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.converter): convert tag or field as metric timestamp #12767

Merged
merged 4 commits into from
Mar 9, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Feb 28, 2023

This adds the timestamp and timestamp_format options to the converter processor. This allows users to take a tag or field and make it the metric timestamp. It uses the same format parsing code that is used throughout Telegraf.

fixes: #12746

This adds the timestamp and timestamp_format options to the converter
processor. This allows users to take a tag or field and make it the
metric timestamp. It uses the same format parsing code that is used
throughout Telegraf.

fixes: influxdata#12746
@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 28, 2023
plugins/processors/converter/converter.go Outdated Show resolved Hide resolved
plugins/processors/converter/sample.conf Outdated Show resolved Hide resolved
plugins/processors/converter/sample.conf Outdated Show resolved Hide resolved
* convert timestmap to string slice
* add additional test cases
* note that measurement and timestamp order is not guaranteed
@powersj powersj marked this pull request as ready for review March 9, 2023 15:04
@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 Mar 9, 2023
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Mar 9, 2023

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.

Looks good to me. Thanks for taking care of this @powersj!

@srebhan srebhan merged commit 736f6ac into influxdata:master Mar 9, 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.

processors.converter - convert time
3 participants