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.

114 lines
3.9 KiB

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. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. Statistic
  9. </div>
  10. <div class="panel-body">
  11. 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.
  12. </div>
  13. </div>
  14. <div class="panel panel-default">
  15. <div class="panel-heading">
  16. System Monitor Status
  17. </div>
  18. <div class="panel-body">
  19. <dl class="dl-horizontal admin-dl-horizontal">
  20. <dt>Server Uptime</dt>
  21. <dd>{{.SysStatus.Uptime}}</dd>
  22. <dt>Current Goroutines</dt>
  23. <dd>{{.SysStatus.NumGoroutine}}</dd>
  24. <hr/>
  25. <dt>Current Memory Usage</dt>
  26. <dd>{{.SysStatus.MemAllocated}}</dd>
  27. <dt>Total Memory Allocated</dt>
  28. <dd>{{.SysStatus.MemTotal}}</dd>
  29. <dt>Memory Obtained</dt>
  30. <dd>{{.SysStatus.MemSys}}</dd>
  31. <dt>Pointer Lookup Times</dt>
  32. <dd>{{.SysStatus.Lookups}}</dd>
  33. <dt>Memory Allocate Times</dt>
  34. <dd>{{.SysStatus.MemMallocs}}</dd>
  35. <dt>Memory Free Times</dt>
  36. <dd>{{.SysStatus.MemFrees}}</dd>
  37. <hr/>
  38. <dt>Current Heap Usage</dt>
  39. <dd>{{.SysStatus.HeapAlloc}}</dd>
  40. <dt>Heap Memory Obtained</dt>
  41. <dd>{{.SysStatus.HeapSys}}</dd>
  42. <dt>Heap Memory Idle</dt>
  43. <dd>{{.SysStatus.HeapIdle}}</dd>
  44. <dt>Heap Memory In Use</dt>
  45. <dd>{{.SysStatus.HeapInuse}}</dd>
  46. <dt>Heap Memory Released</dt>
  47. <dd>{{.SysStatus.HeapReleased}}</dd>
  48. <dt>Heap Objects</dt>
  49. <dd>{{.SysStatus.HeapObjects}}</dd>
  50. <hr/>
  51. <dt>Bootstrap Stack Usage</dt>
  52. <dd>{{.SysStatus.StackInuse}}</dd>
  53. <dt>Stack Memory Obtained</dt>
  54. <dd>{{.SysStatus.StackSys}}</dd>
  55. <dt>MSpan Structures Usage</dt>
  56. <dd>{{.SysStatus.MSpanInuse}}</dd>
  57. <dt>MSpan Structures Obtained</dt>
  58. <dd>{{.SysStatus.HeapSys}}</dd>
  59. <dt>MCache Structures Usage</dt>
  60. <dd>{{.SysStatus.MCacheInuse}}</dd>
  61. <dt>MCache Structures Obtained</dt>
  62. <dd>{{.SysStatus.MCacheSys}}</dd>
  63. <dt>Profiling Bucket Hash Table Obtained</dt>
  64. <dd>{{.SysStatus.BuckHashSys}}</dd>
  65. <dt>GC Metadada Obtained</dt>
  66. <dd>{{.SysStatus.GCSys}}</dd>
  67. <dt>Other System Allocation Obtained</dt>
  68. <dd>{{.SysStatus.OtherSys}}</dd>
  69. <hr/>
  70. <dt>Next GC Recycle</dt>
  71. <dd>{{.SysStatus.NextGC}}</dd>
  72. <dt>Last GC Time</dt>
  73. <dd>{{.SysStatus.LastGC}} ago</dd>
  74. <dt>Total GC Pause</dt>
  75. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  76. <dt>Last GC Pause</dt>
  77. <dd>{{.SysStatus.PauseNs}}</dd>
  78. <dt>GC Times</dt>
  79. <dd>{{.SysStatus.NumGC}}</dd>
  80. </dl>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. {{template "base/footer" .}}