-
Notifications
You must be signed in to change notification settings - Fork 582
Metrics for successful and unsuccessful outgoing publishes #354
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
Comments
Unfortunately it's not obvious how to know if a publishing attempt failed. Not all failures result in timely I/O exceptions. |
@acogoluegnes we can count (I/O and other) exceptions on publish attempts and negative publisher acknowledgements. This would not account for publishes that technically were written to the socket but were never acknowledged because connection went down right after. WDYT? Having two categories is a better idea than lumping everything together, given that there's at least one other category which it or may not be possible to reliably count. |
Another question is whether returned (unroutable) messages should count for "unsuccessful". Again, I think it should be a separate category just like it is in the broker. |
Sounds reasonable to me. If we sum up:
We may add new methods to |
I took the liberty to edit @acogoluegnes' comment to clarify some proposed metric names. |
@michaelklishin, @acogoluegnes I've implemented the first and most basic type of failure, would you mind giving it a look? |
@slayful thank you, we will next week. It just so happens that both Java client maintainers on the core team are on PTO this week. Having follow-up PRs with other improvements (even if they depend on this one) is what we'd prefer. |
Thanks @michaelklishin! :) |
Seems like we could merge #357 and I could add the other types of failures. |
Metrics for multiple acks and nacks are unsupported in this naive approach.
Track publishing failures in metrics References #354
#360 is ready for a second review. :) |
@slayful thank you! |
#354 | Metrics for ack, nack & unrouted publishes
Thank you for merging and helping me do this. We'd love to start monitoring our publishing rates, so please don't mind me asking, do you have an idea when will it be part of a release? |
Release plans for 6.0 haven't been discussed yet but I think a month or so is realistic. We certainly can release a milestone some time this week. |
We can indeed release a milestone in the next few days. We still have a few things to address in 6.0. |
Note I created a follow-up issue to handle multiple publisher confirms in metrics. |
Thanks! :) |
Hey there! This is a feature request I'd be willing to create PR for.
As it stands now, when you're publishing a message and it is successful, the
published
counter in MetricsCollector will be incremented.I'd like to add
publishFailed
counter, which will be incremented if and when publishing attempt fails.This will allow users to easily create reports of publishing success rates and help them determine if the number messages they're not publishing are a significant enough to increase resiliency of their programs.
I'd like to find out if this is a feature that would be a welcome addition and if the way I'd like to add it would meet your expectations.
The text was updated successfully, but these errors were encountered: