Some docs and cleanup

This commit is contained in:
Christopher LaPointe
2023-05-24 21:46:55 -04:00
parent 97f3805899
commit 574e90f73f
5 changed files with 127 additions and 15 deletions

View File

@@ -94,7 +94,7 @@ func StatusHandler(w http.ResponseWriter, r *http.Request) {
runtime.ReadMemStats(&stats)
statusPageTemplate.Execute(w, StatusPageModel{
Active: core.ActiveContainers(),
Qualifying: core.QualifyingContainers(),
Qualifying: core.QualifyingContainers(r.Context()),
RuntimeMetrics: fmt.Sprintf("Heap=%d, InUse=%d, Total=%d, Sys=%d, NumGC=%d", stats.HeapAlloc, stats.HeapInuse, stats.TotalAlloc, stats.Sys, stats.NumGC),
})
default: