spring-attic / hystrix-dashboard Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi,
I have an issue on the dashboard statistic page. I could see the graphics once, but not with the new projects I built.
So here are the application (all of them are Spring Boot application): A (port 9000) calls B (port 9001) calls C (port 9002), Hystrix Dashboard application H simply with a @EnableHystrixDashboard annotation. A, B, and C are Rest web service with A and B having @EnableCircuitBreaker annotation.
Functionally A, B, and C work perfectly so it might not be issue with POM. But when I type no matter the /hystrix.stream of A or B or C on H's home page, it shows Unable to connect to Command Metrix Stream
on the next page as shown below.
On browser console there are error messages:
EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection.
IDE console looks like this:
2017-05-23 15:23:01.938 INFO 2652 --- [nio-8080-exec-4] ashboardConfiguration$ProxyStreamServlet : Proxy opening connection to: http://localhost:9001/hystrix.stream
2017-05-23 15:23:02.213 WARN 2652 --- [nio-8080-exec-3] ashboardConfiguration$ProxyStreamServlet : Failed opening connection to http://localhost:9001/hystrix.stream : 404 : HTTP/1.1 404
2017-05-23 15:23:02.213 WARN 2652 --- [nio-8080-exec-4] ashboardConfiguration$ProxyStreamServlet : Failed opening connection to http://localhost:9001/hystrix.stream : 404 : HTTP/1.1 404```
Where could be wrong?
Thanks.
Hi guys
I can enable hystrix dashboard successfuly.
But in production environment, my service is after zuul with this domain "http://sample_domain/service_name/..." which cause static files like jquery.js don't load successfully.
(It wants to download files for example from http://sample_domain/jquery.js instead of http://sample_domain/service_name/jquery.js)
Is there any way to fix this issue by for example overriding base urls of static files or ...?
Thanks.
With the exception of not using or configuring the mock stream, this code seems to works fine in 1.0.0.M1 but not in RC2. Services are annotated with @EnableHystrix, they are using hystrix, they all report to Eurkea using @EnableEurekaClient (also tried @EnableDiscoveryClient). Navigating to default 7980 port, enter in 'http://localhost:8083/hystrix.stream' (and I know the service at 8083 is running), the circuit page comes up and shows nothing despite traffic through hystrix annotations occurring on that service. Finally, @EnableEurekaClient/@EnableDiscoveryClient on this hystrix server doesn't work at all now.
Hi,
In my project, I have a REST service A on port 8888, consumed by a Hystrix application B on port 8000. They work functionally correct as I got the expected message.
However, I have issue with Hystrix Dashboard. First I tried to make B as a Hystrix Dashboard application by adding the @EnableHystrixDashboard
annotation. I could open the Hystrix Dashboard home page on http://B:8000/hystrix.stream but there were just text data.
I though an explicit Hystrix Dashboard application might be needed so I created Hystrix Dashboard application C on port 8081 by adding the @EnableHystrixDashboard
annotation. Again, the http://C:8081/hystrix.stream worked, yet the Monitor Stream button not working.
If I manually type http://hystrix-dashboard-app:port/hystrix/monitor?stream=http%3A%2FHystrixApp%3Aport/%2Fhystrix.stream it would take me to the statistic page but forever it shows 'Loading...'
Please give any thought you have. Thanks.
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.
mvnw spring-boot:run is not working on windows. I have downloaded code from https://github.com/spring-cloud-samples/hystrix-dashboard.git
https://github.com/spring-cloud-samples/tests/tree/master/hystrix is the sample Hystrix app and should expose a Hystrix Stream. However, http://localhost:8080/hystrix.stream returns a 500 and it is not possible to use the app with the Dashboard. Log message do not suggest that any bean is started to deal with this URL.
@GetMapping("/{id}")
@HystrixCommand(fallbackMethod = "fallbackGetOrders")
public CustomerOrderDetails getOrders(@PathVariable("id") Long orderId) {
final Order order = orderRepository.findById(orderId).orElse(null);
if (order == null) {
return null;
}
return toCustomerOrderDetails(order);
}
//fallback method
public CustomerOrderDetails fallbackGetOrders(Long orderId) {
CustomerOrderDetails orderDetails = CustomerOrderDetails.builder().orderId(0L)
.externalReference("not available").items(null).build();
return orderDetails;
}
The fallback method return following values:
{
"orderId": 0,
"externalReference": "not available",
"customer": null,
"createdDate": null,
"items": null,
"totalOrderCost": null,
"totalOrderTax": null
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.