Skip to content

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

@Shell32-Natsu

Description

@Shell32-Natsu

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions