Class CircuitBreakerHystrixServerSideEvent
The following endpoints are automatically generated and events are produced as Server Sent Event(SSE) curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents/{circuitbreakername} curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents/{circuitbreakername}/{errorType}
Note: This SSE data can be easily mapped to hystrix compatible data format (specific K V pairs) and be used in Turbine or hystrix dashboard or vizceral.
This is created as a bridge to support the legacy hystrix eco system of monitoring tools especially for those that are migrating from hystrix to resilence4j to continue to use hystrix eco tools. Note: Please see the example of how to consume SSE event here CircuitBreakerHystrixStreamEventsTest.java
-
Constructor Summary
ConstructorsConstructorDescriptionCircuitBreakerHystrixServerSideEvent
(io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry circuitBreakerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>>
reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>>
reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>>
getHystrixStreamEventsFilteredByCircuitBreakerNameAndEventType
(String name, String eventType)
-
Constructor Details
-
CircuitBreakerHystrixServerSideEvent
public CircuitBreakerHystrixServerSideEvent(io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry circuitBreakerRegistry)
-
-
Method Details
-
getAllCircuitBreakerHystrixStreamEvents
@ReadOperation(produces="text/event-stream") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>> getAllCircuitBreakerHystrixStreamEvents() -
getHystrixStreamEventsFilteredByCircuitBreakerName
-
getHystrixStreamEventsFilteredByCircuitBreakerNameAndEventType
-