You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
5.3 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="admin-container" class="col-md-10">
  6. {{template "base/alert" .}}
  7. <div class="panel panel-default">
  8. <div class="panel-heading">
  9. Statistic
  10. </div>
  11. <div class="panel-body">
  12. 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, <b>{{.Stats.Counter.LoginSource}}</b> login sources, <b>{{.Stats.Counter.Webhook}}</b> webhooks, <b>{{.Stats.Counter.Milestone}}</b> milestones.
  13. </div>
  14. </div>
  15. <div class="panel panel-default">
  16. <div class="panel-heading">
  17. Operations
  18. </div>
  19. <div class="panel-body">
  20. <table class="table">
  21. <thead>
  22. <tr>
  23. <th>Name</th>
  24. <th>Op.</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <tr>
  29. <td>Clean unbind OAuthes</td>
  30. <td><i class="fa fa-caret-square-o-right"></i> <a href="/admin?op=1">Run</a></td>
  31. </tr>
  32. <tr>
  33. <td>Delete inactivate accounts</td>
  34. <td><i class="fa fa-caret-square-o-right"></i> <a href="/admin?op=2">Run</a></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <div class="panel panel-default">
  41. <div class="panel-heading">
  42. System Monitor Status
  43. </div>
  44. <div class="panel-body">
  45. <dl class="dl-horizontal admin-dl-horizontal">
  46. <dt>Server Uptime</dt>
  47. <dd>{{.SysStatus.Uptime}}</dd>
  48. <dt>Current Goroutines</dt>
  49. <dd>{{.SysStatus.NumGoroutine}}</dd>
  50. <hr/>
  51. <dt>Current Memory Usage</dt>
  52. <dd>{{.SysStatus.MemAllocated}}</dd>
  53. <dt>Total Memory Allocated</dt>
  54. <dd>{{.SysStatus.MemTotal}}</dd>
  55. <dt>Memory Obtained</dt>
  56. <dd>{{.SysStatus.MemSys}}</dd>
  57. <dt>Pointer Lookup Times</dt>
  58. <dd>{{.SysStatus.Lookups}}</dd>
  59. <dt>Memory Allocate Times</dt>
  60. <dd>{{.SysStatus.MemMallocs}}</dd>
  61. <dt>Memory Free Times</dt>
  62. <dd>{{.SysStatus.MemFrees}}</dd>
  63. <hr/>
  64. <dt>Current Heap Usage</dt>
  65. <dd>{{.SysStatus.HeapAlloc}}</dd>
  66. <dt>Heap Memory Obtained</dt>
  67. <dd>{{.SysStatus.HeapSys}}</dd>
  68. <dt>Heap Memory Idle</dt>
  69. <dd>{{.SysStatus.HeapIdle}}</dd>
  70. <dt>Heap Memory In Use</dt>
  71. <dd>{{.SysStatus.HeapInuse}}</dd>
  72. <dt>Heap Memory Released</dt>
  73. <dd>{{.SysStatus.HeapReleased}}</dd>
  74. <dt>Heap Objects</dt>
  75. <dd>{{.SysStatus.HeapObjects}}</dd>
  76. <hr/>
  77. <dt>Bootstrap Stack Usage</dt>
  78. <dd>{{.SysStatus.StackInuse}}</dd>
  79. <dt>Stack Memory Obtained</dt>
  80. <dd>{{.SysStatus.StackSys}}</dd>
  81. <dt>MSpan Structures Usage</dt>
  82. <dd>{{.SysStatus.MSpanInuse}}</dd>
  83. <dt>MSpan Structures Obtained</dt>
  84. <dd>{{.SysStatus.HeapSys}}</dd>
  85. <dt>MCache Structures Usage</dt>
  86. <dd>{{.SysStatus.MCacheInuse}}</dd>
  87. <dt>MCache Structures Obtained</dt>
  88. <dd>{{.SysStatus.MCacheSys}}</dd>
  89. <dt>Profiling Bucket Hash Table Obtained</dt>
  90. <dd>{{.SysStatus.BuckHashSys}}</dd>
  91. <dt>GC Metadada Obtained</dt>
  92. <dd>{{.SysStatus.GCSys}}</dd>
  93. <dt>Other System Allocation Obtained</dt>
  94. <dd>{{.SysStatus.OtherSys}}</dd>
  95. <hr/>
  96. <dt>Next GC Recycle</dt>
  97. <dd>{{.SysStatus.NextGC}}</dd>
  98. <dt>Last GC Time</dt>
  99. <dd>{{.SysStatus.LastGC}} ago</dd>
  100. <dt>Total GC Pause</dt>
  101. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  102. <dt>Last GC Pause</dt>
  103. <dd>{{.SysStatus.PauseNs}}</dd>
  104. <dt>GC Times</dt>
  105. <dd>{{.SysStatus.NumGC}}</dd>
  106. </dl>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. {{template "base/footer" .}}