summaryrefslogtreecommitdiffstats
path: root/templates/admin/dashboard.tmpl
blob: e0b31817aa2ff8394ed070fb6aa944b529021eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body" class="container" data-page="admin">
    {{template "admin/nav" .}}
    <div id="admin-container" class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-heading">
                Statistic
            </div>

            <div class="panel-body">
                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.
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                System Monitor Status
            </div>

            <div class="panel-body">
                <div>Server Uptime: <b>{{.SysStatus.Uptime}}</b></div>
                <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>
            </div>
        </div>
    </div>
</div>
{{template "base/footer" .}}