forgejo/templates/admin/dashboard.tmpl

58 lines
3.2 KiB
Cheetah
Raw Normal View History

2014-03-20 12:50:26 +01:00
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 11:44:37 +01:00
<div id="body" class="container" data-page="admin">
2014-03-21 06:48:10 +01:00
{{template "admin/nav" .}}
2014-03-25 11:44:37 +01:00
<div id="admin-container" class="col-md-9">
2014-03-20 12:50:26 +01:00
<div class="panel panel-default">
<div class="panel-heading">
Statistic
</div>
<div class="panel-body">
2014-03-20 21:04:56 +01:00
Gogs database has <b>{{.Stats.Counter.User}}</b> users, <b>{{.Stats.Counter.PublicKey}}</b> SSH keys, <b>{{.Stats.Counter.Repo}}</b> repositories, <b>{{.Stats.Counter.Watch}}</b> watches, <b>{{.Stats.Counter.Action}}</b> actions, and <b>{{.Stats.Counter.Access}}</b> accesses.
2014-03-20 12:50:26 +01:00
</div>
</div>
2014-03-21 09:13:32 +01:00
<div class="panel panel-default">
<div class="panel-heading">
2014-03-22 12:42:24 +01:00
System Monitor Status
2014-03-21 09:13:32 +01:00
</div>
<div class="panel-body">
2014-03-22 14:21:57 +01:00
<div>Server Uptime: <b>{{.SysStatus.Uptime}}</b></div>
2014-03-22 12:42:24 +01:00
<div>Current Goroutines: <b>{{.SysStatus.NumGoroutine}}</b></div>
<hr/>
<div>Current Memory Usage: <b>{{.SysStatus.MemAllocated}}</b></div>
<div>Total Memory Allocated: <b>{{.SysStatus.MemTotal}}</b></div>
<div>Memory Obtained: <b>{{.SysStatus.MemSys}}</b></div>
<div>Pointer Lookup Times: <b>{{.SysStatus.Lookups}}</b></div>
<div>Memory Allocate Times: <b>{{.SysStatus.MemMallocs}}</b></div>
<div>Memory Free Times: <b>{{.SysStatus.MemFrees}}</b></div>
<hr/>
<div>Current Heap Usage: <b>{{.SysStatus.HeapAlloc}}</b></div>
<div>Heap Memory Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
<div>Heap Memory Idle: <b>{{.SysStatus.HeapIdle}}</b></div>
<div>Heap Memory In Use: <b>{{.SysStatus.HeapInuse}}</b></div>
<div>Heap Memory Released: <b>{{.SysStatus.HeapReleased}}</b></div>
<div>Heap Objects: <b>{{.SysStatus.HeapObjects}}</b></div>
<hr/>
<div>Bootstrap Stack Usage: <b>{{.SysStatus.StackInuse}}</b></div>
<div>Stack Memory Obtained: <b>{{.SysStatus.StackSys}}</b></div>
<div>MSpan Structures Usage: <b>{{.SysStatus.MSpanInuse}}</b></div>
<div>MSpan Structures Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
<div>MCache Structures Usage: <b>{{.SysStatus.MCacheInuse}}</b></div>
<div>MCache Structures Obtained: <b>{{.SysStatus.MCacheSys}}</b></div>
<div>Profiling Bucket Hash Table Obtained: <b>{{.SysStatus.BuckHashSys}}</b></div>
<div>GC Metadada Obtained: <b>{{.SysStatus.GCSys}}</b></div>
<div>Other System Allocation Obtained: <b>{{.SysStatus.OtherSys}}</b></div>
<hr/>
<div>Next GC Recycle: <b>{{.SysStatus.NextGC}}</b></div>
<div>Last GC Time: <b>{{.SysStatus.LastGC}} ago</b></div>
<div>Total GC Pause: <b>{{.SysStatus.PauseTotalNs}}</b></div>
<div>Last GC Pause: <b>{{.SysStatus.PauseNs}}</b></div>
<div>GC Times: <b>{{.SysStatus.NumGC}}</b></div>
2014-03-21 09:13:32 +01:00
</div>
</div>
2014-03-20 12:50:26 +01:00
</div>
</div>
{{template "base/footer" .}}