-
Notifications
You must be signed in to change notification settings - Fork 1.4k
output: add metrics for number of writing events in secondary #4971
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
output: add metrics for number of writing events in secondary #4971
Conversation
3b11f8c
to
6679d83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Hmm, we may need to work out the specifications in more detail.
For example, if a backup occurs in the secondary and it is also counted up as this metrics, it could be OK as a specification of this metrics. |
I implemented it thinking that the more accurate the value, it is the better. OK, I will improve this PR. |
5ef7bf1
to
83759af
Compare
76d87f4
to
d066438
Compare
Should we add these getters? fluentd/lib/fluent/plugin/output.rb Lines 174 to 196 in 0b72a77
|
It seems that we should add the getter because it is unnatural that |
I think we can remove these getter methods. fluentd/lib/fluent/plugin/output.rb Lines 1590 to 1601 in d066438
Look like we have use these getter methods only used in test codes. |
499bb84
to
d066438
Compare
Since it is easy to forget to add this manually, it would be better if the getter were generated automatically. I will try that with another PR. |
Signed-off-by: Shizuo Fujita <[email protected]>
…tests Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: Shizuo Fujita <[email protected]>
d066438
to
499fb55
Compare
Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
499fb55
to
5ded991
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
@Watson1978 Could you update https://docs.fluentd.org/input/monitor_agent#output-example? |
OK, I see :) |
I will update the doc after #4981 . |
I see! |
I created PR to update the doc |
Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
Add metrics for number of writing events in secondary to Output plugins
This metrics can be used to determine whether recovery is required from secondary if failure occurs.
Docs Changes:
fluent/fluentd-docs-gitbook#582
Release Note:
Same as the title.