summaryrefslogtreecommitdiffstats
path: root/templates/admin/dashboard.tmpl
blob: 76539842d2fa2198d1ad28d53e5fec62c737f52b (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body" class="container" data-page="admin">
    {{template "admin/nav" .}}
    <div id="admin-container" class="col-md-10">
        <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, <b>{{.Stats.Counter.Access}}</b> accesses, <b>{{.Stats.Counter.Issue}}</b> issues, <b>{{.Stats.Counter.Comment}}</b> comments, <b>{{.Stats.Counter.Mirror}}</b> mirrors, <b>{{.Stats.Counter.Oauth}}</b> oauthes, <b>{{.Stats.Counter.Release}}</b> releases.
            </div>
        </div>

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

            <div class="panel-body">
                <dl class="dl-horizontal admin-dl-horizontal">
                    <dt>Server Uptime</dt>
                    <dd>{{.SysStatus.Uptime}}</dd>

                    <dt>Current Goroutines</dt>
                    <dd>{{.SysStatus.NumGoroutine}}</dd>

                    <hr/>
                    <dt>Current Memory Usage</dt>
                    <dd>{{.SysStatus.MemAllocated}}</dd>

                    <dt>Total Memory Allocated</dt>
                    <dd>{{.SysStatus.MemTotal}}</dd>

                    <dt>Memory Obtained</dt>
                    <dd>{{.SysStatus.MemSys}}</dd>

                    <dt>Pointer Lookup Times</dt>
                    <dd>{{.SysStatus.Lookups}}</dd>

                    <dt>Memory Allocate Times</dt>
                    <dd>{{.SysStatus.MemMallocs}}</dd>

                    <dt>Memory Free Times</dt>
                    <dd>{{.SysStatus.MemFrees}}</dd>

                    <hr/>
                    <dt>Current Heap Usage</dt>
                    <dd>{{.SysStatus.HeapAlloc}}</dd>

                    <dt>Heap Memory Obtained</dt>
                    <dd>{{.SysStatus.HeapSys}}</dd>

                    <dt>Heap Memory Idle</dt>
                    <dd>{{.SysStatus.HeapIdle}}</dd>

                    <dt>Heap Memory In Use</dt>
                    <dd>{{.SysStatus.HeapInuse}}</dd>

                    <dt>Heap Memory Released</dt>
                    <dd>{{.SysStatus.HeapReleased}}</dd>

                    <dt>Heap Objects</dt>
                    <dd>{{.SysStatus.HeapObjects}}</dd>

                    <hr/>
                    <dt>Bootstrap Stack Usage</dt>
                    <dd>{{.SysStatus.StackInuse}}</dd>

                    <dt>Stack Memory Obtained</dt>
                    <dd>{{.SysStatus.StackSys}}</dd>

                    <dt>MSpan Structures Usage</dt>
                    <dd>{{.SysStatus.MSpanInuse}}</dd>

                    <dt>MSpan Structures Obtained</dt>
                    <dd>{{.SysStatus.HeapSys}}</dd>

                    <dt>MCache Structures Usage</dt>
                    <dd>{{.SysStatus.MCacheInuse}}</dd>

                    <dt>MCache Structures Obtained</dt>
                    <dd>{{.SysStatus.MCacheSys}}</dd>

                    <dt>Profiling Bucket Hash Table Obtained</dt>
                    <dd>{{.SysStatus.BuckHashSys}}</dd>

                    <dt>GC Metadada Obtained</dt>
                    <dd>{{.SysStatus.GCSys}}</dd>

                    <dt>Other System Allocation Obtained</dt>
                    <dd>{{.SysStatus.OtherSys}}</dd>

                    <hr/>
                    <dt>Next GC Recycle</dt>
                    <dd>{{.SysStatus.NextGC}}</dd>

                    <dt>Last GC Time</dt>
                    <dd>{{.SysStatus.LastGC}} ago</dd>

                    <dt>Total GC Pause</dt>
                    <dd>{{.SysStatus.PauseTotalNs}}</dd>

                    <dt>Last GC Pause</dt>
                    <dd>{{.SysStatus.PauseNs}}</dd>

                    <dt>GC Times</dt>
                    <dd>{{.SysStatus.NumGC}}</dd>
                </dl>
            </div>
        </div>
    </div>
</div>
{{template "base/footer" .}}