diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.css b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.css index d4d8787e5..b7279448f 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.css +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.css @@ -110,7 +110,7 @@ .dependencies div.monitor { width: 245px; /* we want a fixed width instead of percentage as I want the boxes to be a set size and then fill in as many as can fit in each row ... this allows 3 columns on an iPad */ - height: 155px; + height: 160px; } .dependencies .success { diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.js b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.js index 755c8f3b9..557047fbf 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.js +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/hystrixCommand.js @@ -19,7 +19,7 @@ * * Publish this externally as "HystrixCommandMonitor" */ - window.HystrixCommandMonitor = function(containerId, args) { + window.HystrixCommandMonitor = function(index, containerId, args) { var self = this; // keep scope under control self.args = args; @@ -27,6 +27,7 @@ self.args = {}; } + this.index = index; this.containerId = containerId; /** @@ -66,6 +67,7 @@ /* public */ self.eventSourceMessageListener = function(e) { var data = JSON.parse(e.data); if(data) { + data.index = self.index; // check for reportingHosts (if not there, set it to 1 for singleHost vs cluster) if(!data.reportingHosts) { data.reportingHosts = 1; @@ -91,7 +93,7 @@ // assert all the values we need validateData(data); // escape string used in jQuery & d3 selectors - data.escapedName = data.name.replace(/([ !"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,'\\$1'); + data.escapedName = data.name.replace(/([ !"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,'\\$1') + '_' + data.index; // do math convertAllAvg(data); calcRatePerSecond(data); diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuitContainer.html b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuitContainer.html index 91407c197..494a3b61d 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuitContainer.html +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuitContainer.html @@ -1,4 +1,4 @@ -
style="padding-right:16px"> <%= displayName %> - +
<% } else { %>><%= displayName %>
@@ -22,12 +22,12 @@><%= displayName %>