Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhengyouwei
8 years ago
Commit
84d621e701f5fe53617ae23ce3211ad67b01763b
1 parent
3f8a9c9c
nginx hystrix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java
monitor-ui-web/src/main/webapp/jsp/hystrix/nginx.jsp
monitor-ui-web/src/main/webapp/script/common/genarate_left_panel.js
monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java
View file @
84d621e
...
...
@@ -23,4 +23,9 @@ public class HystrixCtrl {
return
new
ModelAndView
(
"hystrix/qcloud"
);
}
@RequestMapping
(
"/nginx"
)
public
ModelAndView
toNginx
()
{
return
new
ModelAndView
(
"hystrix/nginx"
);
}
}
...
...
monitor-ui-web/src/main/webapp/jsp/hystrix/nginx.jsp
0 → 100644
View file @
84d621e
<
%@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>
...
...
monitor-ui-web/src/main/webapp/script/common/genarate_left_panel.js
View file @
84d621e
...
...
@@ -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"
);
...
...
Please
register
or
login
to post a comment