Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qahome-diamond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qahome-diamond
Commits
b9440b94
Commit
b9440b94
authored
Aug 06, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加kibana按钮
parent
46f0b54c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
envDetail.vue
src/views/docker/envDetail.vue
+10
-0
No files found.
src/views/docker/envDetail.vue
View file @
b9440b94
...
@@ -181,6 +181,9 @@
...
@@ -181,6 +181,9 @@
<el-tooltip
class=
"item"
effect=
"dark"
content=
"日志"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"日志"
placement=
"top"
>
<el-button
type=
"success"
icon=
"el-icon-time"
circle
@
click=
"linkLog(scope.row)"
/>
<el-button
type=
"success"
icon=
"el-icon-time"
circle
@
click=
"linkLog(scope.row)"
/>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Kibana"
placement=
"top"
>
<el-button
type=
"info"
icon=
"el-icon-time"
circle
@
click=
"linkKibana(scope.row)"
/>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
fixed=
"right"
>
<el-table-column
label=
"操作"
width=
"80"
fixed=
"right"
>
...
@@ -706,6 +709,13 @@ export default {
...
@@ -706,6 +709,13 @@ export default {
// })
// })
},
},
linkKibana
(
scopeData
)
{
const
sn
=
scopeData
.
serviceName
const
ns
=
this
.
namespace
const
url
=
`http://kibana-new.quantgroups.com/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!f,value:5000),time:(from:now-2m,to:now))&_a=(columns:!(message),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:c7d3a2f0-b760-11e9-a937-01944fbd6d1d,key:k8s.namespace,negate:!f,params:(query:
${
ns
}
),type:phrase,value:
${
ns
}
),query:(match:(k8s.namespace:(query:
${
ns
}
,type:phrase)))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:c7d3a2f0-b760-11e9-a937-01944fbd6d1d,key:k8s.svcname,negate:!f,params:(query:
${
sn
}
),type:phrase,value:
${
sn
}
),query:(match:(k8s.svcname:(query:
${
sn
}
,type:phrase))))),index:c7d3a2f0-b760-11e9-a937-01944fbd6d1d,interval:auto,query:(language:kuery,query:''),sort:!(logtime,desc))`
window
.
open
(
`
${
url
}
`
,
'
_blank
'
)
},
linkLog
(
scopeData
)
{
linkLog
(
scopeData
)
{
let
path
=
''
let
path
=
''
if
(
scopeData
.
labels
.
type
===
'
ui
'
)
{
if
(
scopeData
.
labels
.
type
===
'
ui
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment