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

Expand shim for processor and outputs. #7677

Closed
wants to merge 0 commits into from
Closed

Expand shim for processor and outputs. #7677

wants to merge 0 commits into from

Conversation

ssoroka
Copy link
Contributor

@ssoroka ssoroka commented Jun 13, 2020

Expands execd shim support for processors and outputs.
Execd lets you write custom input, processor, and output plugins in any language. The execd shim lets you run plugins written in Go without changing the structure, regardless of whether they're run as internal plugins compiled into Telegraf, or external plugins compiled as a separate binary and run through execd.

@ssoroka ssoroka changed the base branch from master to execd-processor June 13, 2020 02:57
@ssoroka ssoroka added this to the 1.15.0 milestone Jun 22, 2020
@ssoroka ssoroka requested a review from reimda June 23, 2020 21:59
plugins/common/shim/README.md Outdated Show resolved Hide resolved
plugins/common/shim/processor_test.go Outdated Show resolved Hide resolved
return fmt.Errorf("Failed to add Processor: %w", err)
}
} else if conf.Output != nil {
if err = s.AddOutput(conf.Output); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this let people have multiple inputs, processors, and outputs in the same shim? I guess I expected one plugin of any type per shim process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, you can only have one.

@ssoroka
Copy link
Contributor Author

ssoroka commented Jun 24, 2020

rebased master to resolve conflicts... and that might have screwed up this branch...
ok fixed. Need to merge execd-processor first, then change this pr to use master as base.

@ssoroka ssoroka requested a review from reimda June 24, 2020 20:36
Base automatically changed from execd-processor to master June 26, 2020 22:18
@programmer04
Copy link
Contributor

Merging this PR will fix some data races reported in #7729 too.

plugins/common/shim/output.go Outdated Show resolved Hide resolved
plugins/common/shim/output.go Outdated Show resolved Hide resolved
plugins/common/shim/output.go Outdated Show resolved Hide resolved
@ssoroka ssoroka closed this Jul 2, 2020
@ssoroka ssoroka deleted the shim branch July 2, 2020 23:01
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.

4 participants