From a61822f9c973386a16b3f67d33ef82078becc648 Mon Sep 17 00:00:00 2001 From: David-V2 Date: Wed, 5 Apr 2017 18:00:14 +0200 Subject: [PATCH] Added Bad Request count to Hystrix dashboard (#1839) * brainlessly apply this : https://github.com/Netflix/Hystrix/commit/892f6a781e67f153b0bf2f7387c87ca0721955c2 --- .../hystrix/components/hystrixCommand/hystrixCommand.css | 4 ++++ .../components/hystrixCommand/templates/hystrixCircuit.html | 1 + .../src/main/resources/static/hystrix/css/monitor.css | 4 ++++ .../src/main/resources/templates/hystrix/monitor.ftl | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/hystrixCommand.css b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/hystrixCommand.css index 15e95ec8..c3111743 100644 --- a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/hystrixCommand.css +++ b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/hystrixCommand.css @@ -126,6 +126,10 @@ color: red; } +.badRequest { + color: #00CC99; +} + .dependencies .rejected { color: purple; } diff --git a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/templates/hystrixCircuit.html b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/templates/hystrixCircuit.html index 7132a497..e9328ab8 100644 --- a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/templates/hystrixCircuit.html +++ b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/components/hystrixCommand/templates/hystrixCircuit.html @@ -17,6 +17,7 @@
<%= addCommas(rollingCountSuccess) %> <%= addCommas(rollingCountShortCircuited) %> + <%= addCommas(rollingCountBadRequests) %>
diff --git a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/css/monitor.css b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/css/monitor.css index a38647f0..04b929c2 100644 --- a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/css/monitor.css +++ b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/static/hystrix/css/monitor.css @@ -93,6 +93,10 @@ h3.sectionHeader { color: brown; } +.badRequest { + color: #00CC99; +} + @media screen and (max-width: 1100px) { .container { padding-left: 5px; diff --git a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftl b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftl index 24607e1d..b4f3edb0 100644 --- a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftl +++ b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftl @@ -54,7 +54,7 @@ 99.5