Authored by zhengyouwei

nginx hystrix

... ... @@ -23,4 +23,9 @@ public class HystrixCtrl {
return new ModelAndView("hystrix/qcloud");
}
@RequestMapping("/nginx")
public ModelAndView toNginx() {
return new ModelAndView("hystrix/nginx");
}
}
... ...
<%@page language="java" contentType="text/html;charset=utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" style="height: 98%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AWS Hystrix</title>
</head>
<body style="height: 100%;">
<div style="height: 100%;">
<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"
id="iframepage" frameborder="0" scrolling="yes" width="100%" height="100%">
</iframe>
</div>
<script src="<%=basePath %>js/jquery-1.12.0.min.js" charset="UTF-8" type="text/javascript"></script>
<script type="text/javascript">
setInterval(function(){location.replace(location.href)},20 * 60 * 1000);
</script>
</body>
</html>
... ...
... ... @@ -37,6 +37,7 @@ innerHTML += "</ul></li>";
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>";
innerHTML += "<ul><li id='li_hystrix_aws'><a id='a_hystrix_aws' href=''>AWS</a></li>";
innerHTML += "<li id='li_hystrix_qcloud'><a id='a_hystrix_qcloud' href=''>QCloud</a></li>";
innerHTML += "<ul><li id='li_hystrix_nginx'><a id='a_hystrix_nginx' href=''>NGINX</a></li>";
innerHTML += "</ul></li>";
/*工单系统*/
... ... @@ -128,6 +129,7 @@ document.getElementById("li_luaswitch_a").setAttribute("href", path + "/luaswitc
document.getElementById("li_projectHistory_a").setAttribute("href", path + "/project/toHistory");
document.getElementById("a_hystrix_aws").setAttribute("href", path + "/hystrix/aws");
document.getElementById("a_hystrix_qcloud").setAttribute("href", path + "/hystrix/qcloud");
document.getElementById("a_hystrix_nginx").setAttribute("href", path + "/hystrix/nginx");
document.getElementById("li_dns_monitor_a").setAttribute("href", path + "/dns_monitor/");
document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync");
document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode");
... ...