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.

57 lines
3.2 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
  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-9">
  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. <div>Server Uptime: <b>{{.SysStatus.Uptime}}</b></div>
  20. <div>Current Goroutines: <b>{{.SysStatus.NumGoroutine}}</b></div>
  21. <hr/>
  22. <div>Current Memory Usage: <b>{{.SysStatus.MemAllocated}}</b></div>
  23. <div>Total Memory Allocated: <b>{{.SysStatus.MemTotal}}</b></div>
  24. <div>Memory Obtained: <b>{{.SysStatus.MemSys}}</b></div>
  25. <div>Pointer Lookup Times: <b>{{.SysStatus.Lookups}}</b></div>
  26. <div>Memory Allocate Times: <b>{{.SysStatus.MemMallocs}}</b></div>
  27. <div>Memory Free Times: <b>{{.SysStatus.MemFrees}}</b></div>
  28. <hr/>
  29. <div>Current Heap Usage: <b>{{.SysStatus.HeapAlloc}}</b></div>
  30. <div>Heap Memory Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
  31. <div>Heap Memory Idle: <b>{{.SysStatus.HeapIdle}}</b></div>
  32. <div>Heap Memory In Use: <b>{{.SysStatus.HeapInuse}}</b></div>
  33. <div>Heap Memory Released: <b>{{.SysStatus.HeapReleased}}</b></div>
  34. <div>Heap Objects: <b>{{.SysStatus.HeapObjects}}</b></div>
  35. <hr/>
  36. <div>Bootstrap Stack Usage: <b>{{.SysStatus.StackInuse}}</b></div>
  37. <div>Stack Memory Obtained: <b>{{.SysStatus.StackSys}}</b></div>
  38. <div>MSpan Structures Usage: <b>{{.SysStatus.MSpanInuse}}</b></div>
  39. <div>MSpan Structures Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
  40. <div>MCache Structures Usage: <b>{{.SysStatus.MCacheInuse}}</b></div>
  41. <div>MCache Structures Obtained: <b>{{.SysStatus.MCacheSys}}</b></div>
  42. <div>Profiling Bucket Hash Table Obtained: <b>{{.SysStatus.BuckHashSys}}</b></div>
  43. <div>GC Metadada Obtained: <b>{{.SysStatus.GCSys}}</b></div>
  44. <div>Other System Allocation Obtained: <b>{{.SysStatus.OtherSys}}</b></div>
  45. <hr/>
  46. <div>Next GC Recycle: <b>{{.SysStatus.NextGC}}</b></div>
  47. <div>Last GC Time: <b>{{.SysStatus.LastGC}} ago</b></div>
  48. <div>Total GC Pause: <b>{{.SysStatus.PauseTotalNs}}</b></div>
  49. <div>Last GC Pause: <b>{{.SysStatus.PauseNs}}</b></div>
  50. <div>GC Times: <b>{{.SysStatus.NumGC}}</b></div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. {{template "base/footer" .}}