go func() {
mux := http.NewServeMux()
mux.Handle("/metrics", promhttp.HandlerFor(reg, promhttp.HandlerOpts{}))
mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
//nolint:gosec
if err = http.ListenAndServe(f.HTTPAddress, mux); err != nil {
log.Errorf("Serving pprof on %s failed: %s", f.HTTPAddress, err)
}
}()