From 44dc791f334ab18fa5a96b9d2916de26c483343a Mon Sep 17 00:00:00 2001 From: Matt Jacobs Date: Fri, 20 Mar 2015 16:02:30 -0700 Subject: [PATCH] Add error message to HTML when connecting to metrics source fails --- hystrix-dashboard/src/main/webapp/monitor/monitor.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hystrix-dashboard/src/main/webapp/monitor/monitor.html b/hystrix-dashboard/src/main/webapp/monitor/monitor.html index e766540f7..15d0b3b3a 100644 --- a/hystrix-dashboard/src/main/webapp/monitor/monitor.html +++ b/hystrix-dashboard/src/main/webapp/monitor/monitor.html @@ -131,6 +131,8 @@

// }, false); source.addEventListener('error', function(e) { + $("#dependencies .loading").html("Unable to connect to Command Metric Stream."); + $("#dependencies .loading").addClass("failed"); if (e.eventPhase == EventSource.CLOSED) { // Connection was closed. console.log("Connection was closed on error: " + e); @@ -166,6 +168,8 @@

// }, false); source.addEventListener('error', function(e) { + $("#dependencyThreadPools .loading").html("Unable to connect to Thread Pool Metric Stream."); + $("#dependencyThreadPools .loading").addClass("failed"); if (e.eventPhase == EventSource.CLOSED) { // Connection was closed. console.log("Connection was closed on error: " + e);