You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resilience4j-documentation/src/docs/asciidoc/addon_guides/ratpack.adoc
+192-9Lines changed: 192 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -340,16 +340,199 @@ public class MyModule extends AbstractModule {
340
340
}
341
341
----
342
342
343
+
==== Event Monitoring
343
344
345
+
===== CircuitBreaker
346
+
347
+
The emitted CircuitBreaker events are stored in a separate circular event consumer buffers. The size of a event consumer buffer can be configured per CircuitBreaker in the application.yml file (eventConsumerBufferSize).
348
+
The demo adds a custom Ratpack actuator endpoint which can be used to monitor the emitted events of your CircuitBreakers.
349
+
The endpoint `/circuitbreaker` lists the names of all CircuitBreaker instances.
350
+
For example:
351
+
352
+
----
353
+
{
354
+
"circuitBreakers": [
355
+
"backendA",
356
+
"backendB"
357
+
]
358
+
}
359
+
----
344
360
345
-
==== Monitoring
346
-
TODO
347
-
Ratpack provides the concept of a health check. See https://ratpack.io/manual/current/api/ratpack/health/HealthCheckHandler.html for details.
348
-
CircuitBreaker, RateLimiter, and Retry health checks have not been implemented yet.
349
-
When implemented they should function similarly to the spring boot health checks.
361
+
The endpoint `/circuitbreaker/events` lists the latest 100 emitted events of all CircuitBreaker instances.
362
+
The endpoint `/circuitbreaker/stream/events` streams emitted events of all CircuitBreaker instances using Server-Sent Events.
350
363
351
-
==== CircuitBreaker Event Monitoring
352
-
TODO
353
-
Handlers for displaying the last X CircuitBreaker, Ratelimiter, or Retry events are not yet implemented.
354
-
When implemented they should function similarly to the spring boot management endpoints.
0 commit comments