|
75 | 75 | <h4 class="ui top attached header"> |
76 | 76 | {{ctx.Locale.Tr "admin.dashboard.system_status"}} |
77 | 77 | </h4> |
78 | | - <div class="ui attached table segment"> |
79 | | - <dl class="admin-dl-horizontal"> |
80 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.server_uptime"}}</dt> |
81 | | - <dd><relative-time format="duration" datetime="{{.SysStatus.StartTime}}">{{.SysStatus.StartTime}}</relative-time></dd> |
82 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.current_goroutine"}}</dt> |
83 | | - <dd>{{.SysStatus.NumGoroutine}}</dd> |
84 | | - <div class="divider"></div> |
85 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.current_memory_usage"}}</dt> |
86 | | - <dd>{{.SysStatus.MemAllocated}}</dd> |
87 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.total_memory_allocated"}}</dt> |
88 | | - <dd>{{.SysStatus.MemTotal}}</dd> |
89 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.memory_obtained"}}</dt> |
90 | | - <dd>{{.SysStatus.MemSys}}</dd> |
91 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.pointer_lookup_times"}}</dt> |
92 | | - <dd>{{.SysStatus.Lookups}}</dd> |
93 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.memory_allocate_times"}}</dt> |
94 | | - <dd>{{.SysStatus.MemMallocs}}</dd> |
95 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.memory_free_times"}}</dt> |
96 | | - <dd>{{.SysStatus.MemFrees}}</dd> |
97 | | - <div class="divider"></div> |
98 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.current_heap_usage"}}</dt> |
99 | | - <dd>{{.SysStatus.HeapAlloc}}</dd> |
100 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_obtained"}}</dt> |
101 | | - <dd>{{.SysStatus.HeapSys}}</dd> |
102 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_idle"}}</dt> |
103 | | - <dd>{{.SysStatus.HeapIdle}}</dd> |
104 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_in_use"}}</dt> |
105 | | - <dd>{{.SysStatus.HeapInuse}}</dd> |
106 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_released"}}</dt> |
107 | | - <dd>{{.SysStatus.HeapReleased}}</dd> |
108 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.heap_objects"}}</dt> |
109 | | - <dd>{{.SysStatus.HeapObjects}}</dd> |
110 | | - <div class="divider"></div> |
111 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt> |
112 | | - <dd>{{.SysStatus.StackInuse}}</dd> |
113 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.stack_memory_obtained"}}</dt> |
114 | | - <dd>{{.SysStatus.StackSys}}</dd> |
115 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.mspan_structures_usage"}}</dt> |
116 | | - <dd>{{.SysStatus.MSpanInuse}}</dd> |
117 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.mspan_structures_obtained"}}</dt> |
118 | | - <dd>{{.SysStatus.MSpanSys}}</dd> |
119 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.mcache_structures_usage"}}</dt> |
120 | | - <dd>{{.SysStatus.MCacheInuse}}</dd> |
121 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.mcache_structures_obtained"}}</dt> |
122 | | - <dd>{{.SysStatus.MCacheSys}}</dd> |
123 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt> |
124 | | - <dd>{{.SysStatus.BuckHashSys}}</dd> |
125 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.gc_metadata_obtained"}}</dt> |
126 | | - <dd>{{.SysStatus.GCSys}}</dd> |
127 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt> |
128 | | - <dd>{{.SysStatus.OtherSys}}</dd> |
129 | | - <div class="divider"></div> |
130 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.next_gc_recycle"}}</dt> |
131 | | - <dd>{{.SysStatus.NextGC}}</dd> |
132 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.last_gc_time"}}</dt> |
133 | | - <dd>{{.SysStatus.LastGC}}</dd> |
134 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.total_gc_pause"}}</dt> |
135 | | - <dd>{{.SysStatus.PauseTotalNs}}</dd> |
136 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.last_gc_pause"}}</dt> |
137 | | - <dd>{{.SysStatus.PauseNs}}</dd> |
138 | | - <dt>{{ctx.Locale.Tr "admin.dashboard.gc_times"}}</dt> |
139 | | - <dd>{{.SysStatus.NumGC}}</dd> |
140 | | - </dl> |
| 78 | + {{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}} |
| 79 | + <div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".divider" class="ui attached table segment"> |
| 80 | + {{template "admin/system_status" .}} |
141 | 81 | </div> |
142 | 82 | </div> |
143 | 83 | {{template "admin/layout_footer" .}} |
0 commit comments