Authored by zhengyouwei

nginx hystrix

@@ -23,4 +23,9 @@ public class HystrixCtrl { @@ -23,4 +23,9 @@ public class HystrixCtrl {
23 return new ModelAndView("hystrix/qcloud"); 23 return new ModelAndView("hystrix/qcloud");
24 } 24 }
25 25
  26 + @RequestMapping("/nginx")
  27 + public ModelAndView toNginx() {
  28 + return new ModelAndView("hystrix/nginx");
  29 + }
  30 +
26 } 31 }
  1 +<%@page language="java" contentType="text/html;charset=utf-8" %>
  2 +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3 +
  4 +<%
  5 + String path = request.getContextPath();
  6 + String basePath = request.getScheme() + "://"
  7 + + request.getServerName() + ":" + request.getServerPort()
  8 + + path + "/";
  9 +%>
  10 +
  11 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  12 +<html lang="en" style="height: 98%;">
  13 +<head>
  14 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  15 +
  16 + <title>AWS Hystrix</title>
  17 +</head>
  18 +
  19 +<body style="height: 100%;">
  20 +
  21 +<div style="height: 100%;">
  22 +
  23 + <iframe src="http://nginx-monitor.yohops.com/monitor/monitor.html?streams=%5B%7B%22name%22%3A%22%22%2C%22stream%22%3A%22http%3A%2F%2F172.31.80.213%3A8090%2Fturbine%2Fturbine.stream%3Fcluster%3Dyhpro%22%2C%22auth%22%3A%22%22%2C%22delay%22%3A%22%22%7D%5D"
  24 + id="iframepage" frameborder="0" scrolling="yes" width="100%" height="100%">
  25 +
  26 + </iframe>
  27 +</div>
  28 +
  29 +<script src="<%=basePath %>js/jquery-1.12.0.min.js" charset="UTF-8" type="text/javascript"></script>
  30 +<script type="text/javascript">
  31 + setInterval(function(){location.replace(location.href)},20 * 60 * 1000);
  32 +</script>
  33 +
  34 +</body>
  35 +</html>
@@ -37,6 +37,7 @@ innerHTML += "</ul></li>"; @@ -37,6 +37,7 @@ innerHTML += "</ul></li>";
37 innerHTML += "<li class='submenu' id='li_hystrix'><a id='a_hystrix' href='#'><i class='icon icon-th-list'></i> <span>Hystrix</span><span class='label'>2</span></a>"; 37 innerHTML += "<li class='submenu' id='li_hystrix'><a id='a_hystrix' href='#'><i class='icon icon-th-list'></i> <span>Hystrix</span><span class='label'>2</span></a>";
38 innerHTML += "<ul><li id='li_hystrix_aws'><a id='a_hystrix_aws' href=''>AWS</a></li>"; 38 innerHTML += "<ul><li id='li_hystrix_aws'><a id='a_hystrix_aws' href=''>AWS</a></li>";
39 innerHTML += "<li id='li_hystrix_qcloud'><a id='a_hystrix_qcloud' href=''>QCloud</a></li>"; 39 innerHTML += "<li id='li_hystrix_qcloud'><a id='a_hystrix_qcloud' href=''>QCloud</a></li>";
  40 +innerHTML += "<ul><li id='li_hystrix_nginx'><a id='a_hystrix_nginx' href=''>NGINX</a></li>";
40 innerHTML += "</ul></li>"; 41 innerHTML += "</ul></li>";
41 42
42 /*工单系统*/ 43 /*工单系统*/
@@ -128,6 +129,7 @@ document.getElementById("li_luaswitch_a").setAttribute("href", path + "/luaswitc @@ -128,6 +129,7 @@ document.getElementById("li_luaswitch_a").setAttribute("href", path + "/luaswitc
128 document.getElementById("li_projectHistory_a").setAttribute("href", path + "/project/toHistory"); 129 document.getElementById("li_projectHistory_a").setAttribute("href", path + "/project/toHistory");
129 document.getElementById("a_hystrix_aws").setAttribute("href", path + "/hystrix/aws"); 130 document.getElementById("a_hystrix_aws").setAttribute("href", path + "/hystrix/aws");
130 document.getElementById("a_hystrix_qcloud").setAttribute("href", path + "/hystrix/qcloud"); 131 document.getElementById("a_hystrix_qcloud").setAttribute("href", path + "/hystrix/qcloud");
  132 +document.getElementById("a_hystrix_nginx").setAttribute("href", path + "/hystrix/nginx");
131 document.getElementById("li_dns_monitor_a").setAttribute("href", path + "/dns_monitor/"); 133 document.getElementById("li_dns_monitor_a").setAttribute("href", path + "/dns_monitor/");
132 document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync"); 134 document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync");
133 document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode"); 135 document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode");