logthrdest: add syslogng_output_event_retries_total metric #4807
logthrdest: add syslogng_output_event_retries_total metric #4807MrAnno merged 2 commits intosyslog-ng:masterfrom
Conversation
Signed-off-by: Attila Szakacs <[email protected]>
9ec5ed6 to
f72f485
Compare
There was a problem hiding this comment.
Reload is a problem here.
With event_retries, I think we want to indicate when something went wrong with event delivery.
Multiple connect calls are normal within syslog-ng. I think even multiple disconnect() calls are normal.
Why don't we increase this counter where actual errors happen during send/flush?
(Around _rewind_batch(), or on the error paths of _process_result().)
|
Good point. I did not put the counter increase in the error handling functions, because it is only retried after the next connect, which happens after time-reopen, which is 1 minute by default. So we increase the counter 1 minute earlier, but maybe we can live with that. What do you think? |
|
I think we can live with that :) |
Signed-off-by: Attila Szakacs <[email protected]>
f72f485 to
551e947
Compare
|
Moved it to the result handling functions and it happened to end up around |
|
Thank you. A last question: can't we actually put this into |
|
To me it felt a bit side-effecty. If we put it there, I feel like we should rename the function. I will try to come up with something, and if I cannot find, I will just put the stats increase there and not rename it. |
Signed-off-by: Attila Szakacs <[email protected]>
Signed-off-by: Attila Szakacs <[email protected]>
551e947 to
c44425c
Compare
|
@MrAnno Could not come up with a better name :) |
|
I don't think we need a better name, recording metrics are normal side-effects. |
Example metrics: