Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fdb2fd8839 | ||
|
|
f3fac9325c |
@@ -98,6 +98,9 @@ You can change the dashboard language in the settings page (`/setting`) after th
|
|||||||
<a href="https://github.com/ch8o" title="no-name-now">
|
<a href="https://github.com/ch8o" title="no-name-now">
|
||||||
<img src="https://avatars.githubusercontent.com/u/9103372?v=4" width="50;" alt="no-name-now"/>
|
<img src="https://avatars.githubusercontent.com/u/9103372?v=4" width="50;" alt="no-name-now"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/lvgj-stack" title="Ko no dio">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/38449861?v=4" width="50;" alt="Ko no dio"/>
|
||||||
|
</a>
|
||||||
<a href="https://github.com/Creling" title="Creling">
|
<a href="https://github.com/Creling" title="Creling">
|
||||||
<img src="https://avatars.githubusercontent.com/u/43109504?v=4" width="50;" alt="Creling"/>
|
<img src="https://avatars.githubusercontent.com/u/43109504?v=4" width="50;" alt="Creling"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -140,9 +143,6 @@ You can change the dashboard language in the settings page (`/setting`) after th
|
|||||||
<a href="https://github.com/KorenKrita" title="KorenKrita">
|
<a href="https://github.com/KorenKrita" title="KorenKrita">
|
||||||
<img src="https://avatars.githubusercontent.com/u/22239339?v=4" width="50;" alt="KorenKrita"/>
|
<img src="https://avatars.githubusercontent.com/u/22239339?v=4" width="50;" alt="KorenKrita"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/lvgj-stack" title="Ko no dio">
|
|
||||||
<img src="https://avatars.githubusercontent.com/u/38449861?v=4" width="50;" alt="Ko no dio"/>
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/techotaku" title="Ian Li">
|
<a href="https://github.com/techotaku" title="Ian Li">
|
||||||
<img src="https://avatars.githubusercontent.com/u/1948179?v=4" width="50;" alt="Ian Li"/>
|
<img src="https://avatars.githubusercontent.com/u/1948179?v=4" width="50;" alt="Ian Li"/>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -118,6 +118,11 @@ func (p *commonPage) service(c *gin.Context) {
|
|||||||
var statsStore map[uint64]model.CycleTransferStats
|
var statsStore map[uint64]model.CycleTransferStats
|
||||||
copier.Copy(&stats, singleton.ServiceSentinelShared.LoadStats())
|
copier.Copy(&stats, singleton.ServiceSentinelShared.LoadStats())
|
||||||
copier.Copy(&statsStore, singleton.AlertsCycleTransferStatsStore)
|
copier.Copy(&statsStore, singleton.AlertsCycleTransferStatsStore)
|
||||||
|
for k, service := range stats {
|
||||||
|
if !service.Monitor.EnableShowInService {
|
||||||
|
delete(stats, k)
|
||||||
|
}
|
||||||
|
}
|
||||||
return []interface {
|
return []interface {
|
||||||
}{
|
}{
|
||||||
stats, statsStore,
|
stats, statsStore,
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
</section>
|
</section>
|
||||||
<section class="monitor-container">
|
<section class="monitor-container">
|
||||||
{{range $service := .Services}}
|
{{range $service := .Services}}
|
||||||
{{if $service.Monitor.EnableShowInService}}
|
|
||||||
<section class="monitor-info-container">
|
<section class="monitor-info-container">
|
||||||
<div class="monitor-state">
|
<div class="monitor-state">
|
||||||
<span class="monitor-state-dot {{className (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}"></span>
|
<span class="monitor-state-dot {{className (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}"></span>
|
||||||
@@ -83,7 +82,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
|
||||||
</section>
|
</section>
|
||||||
{{if .CycleTransferStats}}
|
{{if .CycleTransferStats}}
|
||||||
<h2 class="mdui-m-t-5 mdui-text-center">{{tr "CycleTransferStats"}}</h2>
|
<h2 class="mdui-m-t-5 mdui-text-center">{{tr "CycleTransferStats"}}</h2>
|
||||||
|
|||||||
+1
-2
@@ -18,7 +18,6 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{range $service := .Services}}
|
{{range $service := .Services}}
|
||||||
{{if $service.Monitor.EnableShowInService}}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="ui center aligned">{{$service.Monitor.Name}}</td>
|
<td class="ui center aligned">{{$service.Monitor.Name}}</td>
|
||||||
<td class="ui center aligned">
|
<td class="ui center aligned">
|
||||||
@@ -34,7 +33,7 @@
|
|||||||
class="delay-today {{className (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}"></i>
|
class="delay-today {{className (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}"></i>
|
||||||
{{statusName (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}
|
{{statusName (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}
|
||||||
</td>
|
</td>
|
||||||
</tr> {{end}} {{end}}
|
</tr> {{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -15,7 +15,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id="servers">
|
<tbody id="servers">
|
||||||
<template v-for="service in services">
|
<template v-for="service in services">
|
||||||
<tr v-if="service.enableShow === 'true'">
|
<tr>
|
||||||
<td class="node-cell center">
|
<td class="node-cell center">
|
||||||
<div class="delay-today">
|
<div class="delay-today">
|
||||||
<i class="delay-today" :class="service.health.className"></i>
|
<i class="delay-today" :class="service.health.className"></i>
|
||||||
@@ -137,7 +137,6 @@
|
|||||||
delay: '{{$service.Delay}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
delay: '{{$service.Delay}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
||||||
up: '{{$service.Up}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
up: '{{$service.Up}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
||||||
down: '{{$service.Down}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
down: '{{$service.Down}}'.replaceAll("[","").replaceAll("]","").split(" "),
|
||||||
enableShow: '{{$service.Monitor.EnableShowInService}}',
|
|
||||||
})
|
})
|
||||||
{{end}}
|
{{end}}
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
|
|||||||
Reference in New Issue
Block a user