spring-attic / hystrix-dashboard

Apache License 2.0
99 stars 104 forks source link

hystrix-dashboard support for jersey api endpoint #8

Open gs-offcl opened 6 years ago

gs-offcl commented 6 years ago

Dear Spring Cloud Team, I have a spring boot application with @EnableTurbineStream and @EnableHystrixDashboard enabled.

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</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>

I have jersey restful services with following configurations added in pom.xml

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bus-amqp</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
    </dependency>

and, I have rabbitmq also installed.

My clarification here is --

Does hystrix dash board/turbine supports for jersey apis endpoints to capture metrics ?

Currently i'm unable to see any captured metrics stream on Hystrix dashboard.

Any help would really appreciated Thank you.

spencergibb commented 6 years ago

I'm afraid I don't understand the question. Hystrix commands can be used anywhere. @HystrixCommand is useful to annotate spring beans. Manual built HystrixCommand objects can be used on anything.