Skip to content

Conversation

jmccormick7
Copy link

This PR is related to this PR on the fluent-bit repository.

This PR adds a new function FLBPluginRegisterWithEventType that enables setting the event type for output plugins. This change updates the header files to match the proposed changes in the fluent-bit repository, and adds documentation in addition to this new feature.

This commit relies on changes being accepted in the fluent-bit repository. The goal is to enable event-type registration for go proxy plugins.
This change introduces a new function that will allow event-type setting in registration. This is done in order to not introduce breaking changes to current plugins.
This new function can be used instead of the default FLBPluginRegisterFunction to set the event_type to a different value (metrics (2)).

Signed-off-by: jmccormick7 <[email protected]>
Signed-off-by: jmccormick7 <[email protected]>
This change just adds setting the empty value for event_type on input. Inputs do not set event type.
This is related to a prosposed change in the fluent-bit library to ensure that the struct is the same format
as the proposed change to enable output plugins to set their event type.

Signed-off-by: jmccormick7 <[email protected]>
This change adds in the constants from the fluent-bit repository for output types.
These can be used in the go modules to then set the event type.

Signed-off-by: jmccormick7 <[email protected]>
This change adds to the README.md files of each example output plugin
and example of how to enable metric usage using the new function
`FLBRegisterPluginWithEventType`

Signed-off-by: jmccormick7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant