[MM-56890] Expose allocs and mutex pprof profiling data (#26243)

Этот коммит содержится в:
Ben Schumacher
2024-02-27 13:59:42 +01:00
коммит произвёл GitHub
родитель 994e437f2a
Коммит 18f7c3775a
2 изменённых файлов: 95 добавлений и 0 удалений

Просмотреть файл

@@ -175,8 +175,10 @@ func (pm *platformMetrics) initMetricsRouter() error {
// Manually add support for paths linked to by index page at /debug/pprof/
pm.router.Handle("/debug/pprof/goroutine", pprof.Handler("goroutine"))
pm.router.Handle("/debug/pprof/heap", pprof.Handler("heap"))
pm.router.Handle("/debug/pprof/allocs", pprof.Handler("allocs"))
pm.router.Handle("/debug/pprof/threadcreate", pprof.Handler("threadcreate"))
pm.router.Handle("/debug/pprof/block", pprof.Handler("block"))
pm.router.Handle("/debug/pprof/mutex", pprof.Handler("mutex"))
// Plugins metrics route
pluginsMetricsRoute := pm.router.PathPrefix("/plugins/{plugin_id:[A-Za-z0-9\\_\\-\\.]+}/metrics").Subrouter()