Skip to content

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

Merged
cosmo0920 merged 18 commits into
fluent:masterfrom
cosmo0920:use-metrics-plugin-mechanism-on-plugin-base-classes
Aug 2, 2021
Merged

input: filter: output: bare_output: multi_output: Use metrics plugin mechanism on plugin base classes#3479
cosmo0920 merged 18 commits into
fluent:masterfrom
cosmo0920:use-metrics-plugin-mechanism-on-plugin-base-classes

Conversation

@cosmo0920

Copy link
Copy Markdown
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.

Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
@cosmo0920 cosmo0920 requested review from ashie and kenhys July 30, 2021 10:15
@cosmo0920 cosmo0920 self-assigned this Jul 30, 2021
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
…iguring is done

Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
if needn't

Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
@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
Copy Markdown
Contributor Author

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

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
@ashie

ashie commented Jul 31, 2021

Copy link
Copy Markdown
Member

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

I fixed it.

Comment thread lib/fluent/compat/output.rb Outdated
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
@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

cosmo0920 commented Aug 2, 2021

Copy link
Copy Markdown
Contributor Author

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

@cosmo0920

cosmo0920 commented Aug 2, 2021

Copy link
Copy Markdown
Contributor Author

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