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
qinchao
8 years ago
Commit
6c2f74a4a28e08d503abd6d7dcbdeae847a97eb1
1 parent
59a4d39a
bigdata监控系统url改为由配置文件获取
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/BigDataCtrl.java
monitor-ui-web/src/main/webapp/jsp/bigdata/dashboardinfo.jsp
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
View file @
6c2f74a
...
...
@@ -264,6 +264,11 @@ public class HttpUriContants {
public
static
final
String
INTERNAL_DOMAIN_HISTORY
=
"/internalDns/getHistory"
;
/**
* bigdata监控
*/
public
static
final
String
BIGDATA_GETACCESSURL
=
"/bigdata/getAccessUrl"
;
/**
* 配置管理
* 恶意请求ip
* 获取
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/BigDataCtrl.java
View file @
6c2f74a
package
com
.
ui
.
ctrl
;
import
com.ui.contants.HttpUriContants
;
import
com.ui.http.HttpRestClient
;
import
com.ui.model.BaseResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -15,9 +17,14 @@ import org.springframework.web.servlet.ModelAndView;
@RequestMapping
(
"/bigdata"
)
public
class
BigDataCtrl
{
@Autowired
private
HttpRestClient
httpRestClient
;
@RequestMapping
(
"/toDashboardinfo"
)
@ResponseBody
public
ModelAndView
toDashboardinfo
(
Model
model
)
{
String
url
=
httpRestClient
.
defaultPost
(
HttpUriContants
.
BIGDATA_GETACCESSURL
,
null
,
String
.
class
);
model
.
addAttribute
(
"accessUrl"
,
url
);
return
new
ModelAndView
(
"bigdata/dashboardinfo"
);
}
...
...
monitor-ui-web/src/main/webapp/jsp/bigdata/dashboardinfo.jsp
View file @
6c2f74a
...
...
@@ -66,7 +66,7 @@
</div>
<!-- 右侧具体内容 -->
<div
id=
"content"
>
<iframe
src=
"
http://dashboardui.yohops.com
/dashboard/index"
id=
"iframepage"
frameborder=
"0"
scrolling=
"auto"
width=
"100%"
height=
"800px"
>
<iframe
src=
"
${accessUrl}
/dashboard/index"
id=
"iframepage"
frameborder=
"0"
scrolling=
"auto"
width=
"100%"
height=
"800px"
>
</iframe>
</div>
...
...
Please
register
or
login
to post a comment