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

input: filter: output: bare_output: multi_output: Use metrics plugin mechanism on plugin base classes #3479

Conversation

cosmo0920
Copy link
Contributor

Which issue(s) this PR fixes:
None

What this PR does / why we need it:
This is the last PR series for implementing metrics plugin mechanism.
With these changes, our cmetrics metrics plugin can work with Fluentd and Fluentd can handle native metrics to send prometheus via fluent-plugin-metrics-cmetrics which binds cmetrics library.

Performance degradation will be prevented with 97486d1 and e499589. Locking with Monitor is heavy operation when it needn't to use due to disable size metrics on each plugin base classes.

Docs Changes:
Needed.

Release Note:
Same as title.

@cosmo0920 cosmo0920 requested review from ashie and kenhys July 30, 2021 10:15
@cosmo0920 cosmo0920 self-assigned this Jul 30, 2021
@cosmo0920 cosmo0920 force-pushed the use-metrics-plugin-mechanism-on-plugin-base-classes branch from e499589 to e9b3d27 Compare July 30, 2021 10:19
@cosmo0920
Copy link
Contributor Author

Hmm, all CI tasks are failed. We should check them.

@ashie
Copy link
Member

ashie commented Jul 31, 2021

Hmm, all CI tasks are failed. We should check them.

I fixed it.

lib/fluent/compat/output.rb Outdated Show resolved Hide resolved
@cosmo0920 cosmo0920 merged commit b28f7d7 into fluent:master Aug 2, 2021
@cosmo0920 cosmo0920 deleted the use-metrics-plugin-mechanism-on-plugin-base-classes branch August 2, 2021 01:25
@cosmo0920
Copy link
Contributor Author

cosmo0920 commented Aug 2, 2021

I found that we should do additional work for prometheus plugin. I'll send another PR. o/

@cosmo0920
Copy link
Contributor Author

cosmo0920 commented Aug 2, 2021

I'd confirmed that, in Fluentd side, there is no additional work is needed but prometheus plugin should follow this change.

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.

2 participants