I use <spring-cloud.version>Finchley.M8</spring-cloud.version> and
spring boot version is <version>2.0.0.RELEASE</version> in my project
also I have added to my project @EnableHystrix @EnableHystrixDashboard
but when I send request to /hystrix.stream that my response is 404
/actuator/hystrix.stream
I confirm it doesn't work on M8. There is no mapping registered:
2018-03-21 13:44:53.065 INFO 25203 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-03-21 13:44:53.065 INFO 25203 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-03-21 13:44:53.096 INFO 25203 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-21 13:44:53.096 INFO 25203 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-21 13:44:53.132 INFO 25203 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-21 13:44:53.489 INFO 25203 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2018-03-21 13:44:53.490 INFO 25203 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2018-03-21 13:44:53.492 INFO 25203 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
The boot documentation needs to be followed to enable all but a couple of endpoints, did you do that?
I've checked in the spring-cloud-netflix documentation under the Hystrix Dashboard section but there is nothing about properties to set. Which one should I use here? Maybe it would be good to mention that in the hystrix dashboard docs?
The boot docs, and yes it probably should. But did you read the boot 2 documentation or migration guide?
Yes - but I found nothing about the hystrix endpoint. I see that I have to include it manually, However there is even no info what is the id of this endpoint :)
After setting management.endpoints.web.exposure.include: hystrix.stream
it's available under /actuator/hystrix.stream
@jkubrynski thank you. your solution is working.
Finchley.M8 has the same problem with another endpoints like /health and /info that's why you should add :
management.endpoints.web.exposure.include: hystrix.stream, info, health
Also if you don't want to adding prefix /actuator to this endpoint that you can add follow parameter to your configuration files :
management.endpoints.web.base-path: /
management:
endpoints:
web:
exposure:
include: "*"
can't enable HystrixStreamEndpoint 'hystrix.stream'
: Exposing 20 endpoint(s) beneath base path '/actuator'
Unknown Date
5/5/2018 11:45:26 PM2018-05-05 15:45:26.896 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/archaius],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.897 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/auditevents],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.898 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/beans],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.899 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.900 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/conditions],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.901 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/configprops],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.901 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/env],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.902 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/env/{toMatch}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.903 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/env],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v2+json || application/json],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$WriteOperationHandler.handle(org.springframework.web.server.ServerWebExchange,java.util.Map<java.lang.String, java.lang.String>)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.904 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/env],methods=[DELETE],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.905 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.906 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/loggers],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.907 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/loggers/{name}],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$WriteOperationHandler.handle(org.springframework.web.server.ServerWebExchange,java.util.Map<java.lang.String, java.lang.String>)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.907 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/loggers/{name}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.908 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/heapdump],methods=[GET],produces=[application/octet-stream]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.909 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/threaddump],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.910 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/metrics],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.911 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/metrics/{requiredMetricName}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.912 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/scheduledtasks],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.913 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/httptrace],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
Unknown Date
5/5/2018 11:45:26 PM2018-05-05 15:45:26.914 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/mappings],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.916 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/refresh],methods=[POST],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$WriteOperationHandler.handle(org.springframework.web.server.ServerWebExchange,java.util.Map<java.lang.String, java.lang.String>)
Unknown Date
5/5/2018 11:45:26 PM2018-05-05 15:45:26.916 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/features],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.917 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/service-registry],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v2+json || application/json],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$WriteOperationHandler.handle(org.springframework.web.server.ServerWebExchange,java.util.Map<java.lang.String, java.lang.String>)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.918 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/service-registry],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.919 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/bindings/{name}],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$WriteOperationHandler.handle(org.springframework.web.server.ServerWebExchange,java.util.Map<java.lang.String, java.lang.String>)
Unknown Date
5/5/2018 11:45:26 PM2018-05-05 15:45:26.920 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/bindings],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.920 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/bindings/{name}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
Unknown Date
5/5/2018 11:45:26 PM2018-05-05 15:45:26.921 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator/channels],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public org.reactivestreams.Publisher<org.springframework.http.ResponseEntity<java.lang.Object>> org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping$ReadOperationHandler.handle(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:26 PM2018-05-05 15:45:26.922 INFO 1 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.reactive.WebFluxEndpointHandlerMapping.links(org.springframework.web.server.ServerWebExchange)
5/5/2018 11:45:27 PM2018-05-05 15:45:27.007 INFO 1 --- [ main] o.s.w.r.r.m.a.ControllerMethodResolver : Looking for @ControllerAdvice: org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@1f7030a6: startup date [Sat May 05 15:45:24 UTC 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7dc36524
5/5/2018 11:45:27 PM2018-05-05 15:45:27.386 WARN 1 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
no hystrix.stream found.
@MadeInChina can you post /actuator/conditions and search for hystrix?
@spencergibb
conditions.json.zip
I have to upload the file for conditions
with Finchley.RC1 and spring-boot 2.0.1.RELEASE
HystrixAutoConfiguration.HystrixServletAutoConfiguration: {
notMatched: [{
condition: "OnClassCondition",
message: "@ConditionalOnClass did not find required class 'com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet'",
}],
matched: [],
},
You're missing a hystrix dependency.
I had tested add HystrixMetricsStreamServlet bean there but found:
HystrixAutoConfiguration.HystrixServletAutoConfiguration: {
notMatched: [
{
condition: "OnBeanCondition",
message: "@ConditionalOnBean (types: com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect; SearchStrategy: all) did not find any beans of type com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect",
}
],
matched: [
{
condition: "OnClassCondition",
message: "@ConditionalOnClass found required class 'com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet'; @ConditionalOnMissingClass did not find unwanted class",
},
{
condition: "OnWebApplicationCondition",
message: "found ConfigurableWebEnvironment",
},
],
},
and 'hystrix.stream' still not enabled.
Use the Hystrix starter, it's time to end this conversation here since it's not relevant to this issue, join us on gitter
i'm on gitter, here is my pom which using spring-cloud-starter-netflix-hystrix
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Btw i got the HystrixCommand from logs. but could using hystrix.stream or turbine.stream to get them
018-05-05 17:24:49.481 INFO 1 --- [ main] com.example.turbine.TurbineApplication : Started TurbineApplication in 8.67 seconds (JVM running for 9.079)
2018-05-05 17:24:49.616 DEBUG 1 --- [9i_VpsAjhA8hw-1] o.s.c.n.t.s.HystrixStreamAggregator : Received hystrix stream payload: {type=HystrixCommand, name=account-service.AuthServiceClient#createUser(User), group=auth-service, currentTime=1525541089101, isCircuitBreakerOpen=false, errorPercentage=0, errorCount=0, requestCount=0, rollingCountCollapsedRequests=0, rollingCountExceptionsThrown=0, rollingCountFailure=0, rollingCountFallbackFailure=0, rollingCountFallbackRejection=0, rollingCountFallbackSuccess=0, rollingCountResponsesFromCache=0, rollingCountSemaphoreRejected=0, rollingCountShortCircuited=0, rollingCountSuccess=0, rollingCountThreadPoolRejected=0, rollingCountTimeout=0, currentConcurrentExecutionCount=0, latencyExecute_mean=0, latencyExecute={0=0, 25=0, 50=0, 75=0, 90=0, 95=0, 99=0, 99.5=0, 100=0}, latencyTotal_mean=0, latencyTotal={0=0, 25=0, 50=0, 75=0, 90=0, 95=0, 99=0, 99.5=0, 100=0}, propertyValue_circuitBreakerRequestVolumeThreshold=20, propertyValue_circuitBreakerSleepWindowInMilliseconds=5000, propertyValue_circuitBreakerErrorThresholdPercentage=50, propertyValue_circuitBreakerForceOpen=false, propertyValue_circuitBreakerForceClosed=false, propertyValue_circuitBreakerEnabled=true, propertyValue_executionIsolationStrategy=THREAD, propertyValue_executionIsolationThreadTimeoutInMilliseconds=10000, propertyValue_executionIsolationThreadInterruptOnTimeout=true, propertyValue_executionIsolationThreadPoolKeyOverride=null, propertyValue_executionIsolationSemaphoreMaxConcurrentRequests=10, propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests=10, propertyValue_metricsRollingStatisticalWindowInMilliseconds=10000, propertyValue_requestCacheEnabled=true, propertyValue_requestLogEnabled=true, reportingHosts=1, instanceId=account-service-1}
2018-05-05 17:24:49.619 DEBUG 1 --- [9i_VpsAjhA8hw-1] o.s.c.n.t.s.HystrixStreamAggregator : Received hystrix stream payload: {type=HystrixThreadPool, name=auth-service, currentTime=1525541089101, currentActiveCount=0, currentCompletedTaskCount=1, currentCorePoolSize=10, currentLargestPoolSize=1, currentMaximumPoolSize=10, currentPoolSize=1, currentQueueSize=0, currentTaskCount=1, rollingCountThreadsExecuted=0, rollingMaxActiveThreads=0, propertyValue_queueSizeRejectionThreshold=5, propertyValue_metricsRollingStatisticalWindowInMilliseconds=10000, reportingHosts=1, instanceId=account-service-1}
@EnableHystrix
management.endpoints.web.exposure.include: hystrix.stream
pom with spring-cloud-starter-netflix-hystrix
Not a single one of these conditions can be dispensed with,if no hystrix.stream found., plz check these option。
Most helpful comment
Yes - but I found nothing about the hystrix endpoint. I see that I have to include it manually, However there is even no info what is the
idof this endpoint :)After setting
management.endpoints.web.exposure.include: hystrix.streamit's available under
/actuator/hystrix.stream