diff --git a/internal/admin/server.go b/internal/admin/server.go index beb9c4220..cd7e94053 100644 --- a/internal/admin/server.go +++ b/internal/admin/server.go @@ -26,6 +26,7 @@ const ( var Mux = http.NewServeMux() var baseplateGoCollectors = collectors.WithGoCollectorRuntimeMetrics( + collectors.MetricsGC, collectors.MetricsScheduler, ) diff --git a/internal/admin/server_test.go b/internal/admin/server_test.go index b3effc188..074ba1c32 100644 --- a/internal/admin/server_test.go +++ b/internal/admin/server_test.go @@ -8,7 +8,29 @@ import ( ) var expectedMetrics = []string{ + "go_gc_cycles_automatic_gc_cycles_total", + "go_gc_cycles_forced_gc_cycles_total", + "go_gc_cycles_total_gc_cycles_total", "go_gc_duration_seconds", + "go_gc_gogc_percent", + "go_gc_gomemlimit_bytes", + "go_gc_heap_allocs_by_size_bytes", + "go_gc_heap_allocs_bytes_total", + "go_gc_heap_allocs_objects_total", + "go_gc_heap_frees_by_size_bytes", + "go_gc_heap_frees_bytes_total", + "go_gc_heap_frees_objects_total", + "go_gc_heap_goal_bytes", + "go_gc_heap_live_bytes", + "go_gc_heap_objects_objects", + "go_gc_heap_tiny_allocs_objects_total", + "go_gc_limiter_last_enabled_gc_cycle", + "go_gc_pauses_seconds", + "go_gc_scan_globals_bytes", + "go_gc_scan_heap_bytes", + "go_gc_scan_stack_bytes", + "go_gc_scan_total_bytes", + "go_gc_stack_starting_size_bytes", "go_goroutines", "go_info", "go_memstats_alloc_bytes",