Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The agent doesn't handle "/" but the documents are not updated #438

Open
Shell32-Natsu opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@Shell32-Natsu
Copy link

The Parca agent doesn't handle "/" requests from parca-dev/parca-agent#2958.

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)
	}
}()

But the doc still mentions about access the agent webpage.

Now we can view the active profilers by visiting http://localhost:7071:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant