Provide aggregated retry.calls
See original GitHub issueResilience4j version: 1.2.0
Java version: 11.0.3
Problem description:
As some systems expects aggregated data the retry.calls
metric should return for them aggregated value. Here you can read more about this problem:
https://micrometer.io/docs/concepts#rate-aggregation
Currently this metric is Gauge. In my case the monitoring system is a newrelic. I can not make readable dashboard without such a metric.
How do you about providing additional metric retry.calls.aggregated
? Which returns how many calls have been processed from last execution. I am going to provide example implementation.
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (31 by maintainers)
Top Results From Across the Web
REL05-BP03 Control and limit retry calls - Reliability Pillar
Control and limit retry calls. Use exponential backoff to retry after progressively longer intervals. Introduce jitter to randomize those retry intervals, and ...
Read more >Retry steps | Workflows - Google Cloud
A retry policy is composed of a predicate that defines which error codes should be retried and default values for the retry configuration...
Read more >Retry Requests Fearlessly with Idempotence - Medium
A practical guide to being fearless in the presence of duplicate service requests. Explore idempotence in DDD, CQRS, and Event Sourcing.
Read more >Cleanest way to write retry logic? - Stack Overflow
Blanket catch statements that simply retry the same call can be dangerous if used as a general exception handling mechanism. Having said that,...
Read more >Gateway Aggregation pattern - Azure Architecture Center
When to use this pattern · You want to reduce the number of calls between a client and a single service across multiple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve opened another PR. @RobWin could you review it please? 😃
Yes, you are right. I also don’t like the idea that the Retry decorator emits an event on every successful call only to be able to measure the call rate. It puts too much unnecessary pressure on memory and garbage collection. I thought you are only interested in the rate of calls which have been retried. If you need a decorator which measures the rate and maybe also response times of all calls, you should better implement a new Timer decorator especially for this purpose.