output: add metrics for number of writing events in secondary#4971
output: add metrics for number of writing events in secondary#4971daipom merged 7 commits intofluent:masterfrom
Conversation
3b11f8c to
6679d83
Compare
|
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 <fujita@clear-code.com>
…tests Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com> Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
d066438 to
499fb55
Compare
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
499fb55 to
5ded991
Compare
|
@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.