feat(config): Add setting to skip processors before aggregators#19092
feat(config): Add setting to skip processors before aggregators#19092calvinmachado20 wants to merge 14 commits into
Conversation
|
I'd be happy to test this, but the Telegraf bot artifacts are missing due to a flaky test? |
|
Checking this |
|
@srebhan the failures appear to be flaky, how do you want to proceed here? |
|
@R290 the artifacts are generated, feel free to give this feature a run |
|
Behavior is expected. Setting both My test case consists of reading 2 metrics from file, one with field |
|
Thanks for testing this out |
srebhan
left a comment
There was a problem hiding this comment.
Thanks for your contribution @calvinmachado20! Just one comment/question...
There was a problem hiding this comment.
Thanks @calvinmachado20!
One more thing: I think it's not good to mix config-related things into the agent code. So can we please check for the valid setup (we are not skipping before and after) as well as the conditionals to the config code just like SkipProcessorsAfterAggregators does it!?! I.e. we simply don't add processors to a.Config.Processors if SkipProcessorsBeforeAggregators is true...
This ensures that config related stuff is kept in config-land and does not sneak into the agent code.
|
@srebhan thanks for the suggestion, completely agree with you, implemented the same |
|
@srebhan does this PR look good to go? |
srebhan
left a comment
There was a problem hiding this comment.
Thanks @calvinmachado20! I think you need to restore the warning!
srebhan
left a comment
There was a problem hiding this comment.
Thanks for the update @calvinmachado20! There are three more documentation placement comments from my side...
|
@srebhan updated the docs as suggested |
|
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
srebhan
left a comment
There was a problem hiding this comment.
Nice! Thanks a lot @calvinmachado20!
Summary
Addresses open issue: 17006
#14882 has introced the skip_processors_after_aggregators config option. Are there any plans to add a similar skip_processors_before_aggregators config option?
Expected behavior
Processors only run after the aggregators and are skipped before the aggregators.
Actual behavior
Manual workaround with adding, filtering and removing tags is required to achieve the above.
Checklist
Related issues
resolves #17006