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

fix(agent): Skip initialization of second processor state if requested #16290

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Dec 10, 2024

Summary

Currently, the telegraf agent does initialize the processors in the processor stage after the aggregators even if skip_processors_after_aggregators is set to true. While the processors are not executed, initializing them is confusing and unnecessary.

This PR skips the initialization of the second processor stage if the user intends to skip them anyway.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #16143

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Dec 10, 2024
@telegraf-tiger
Copy link
Contributor

@srebhan srebhan added area/agent ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Dec 10, 2024
@DStrand1 DStrand1 merged commit d2e032e into influxdata:master Dec 11, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.33.1 milestone Dec 11, 2024
justinwwhuang pushed a commit to justinwwhuang/telegraf_fork that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agent fix pr to fix corresponding bug 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 are initialised twice
2 participants