Stuck on "Intro to metrics with Grafana: Prometheus, Grafana Mimir, and beyond" webinar

Howdy Community,

I am following this webinar: Intro to metrics with Grafana: Prometheus, Grafana Mimir, and beyond | Grafana Labs

I am at the 20 minute mark to set up Grafana Alloy on MacOS.

I can’t get Alloy up and running.

This is the error that I get:

goroutine 1 [running]:
net/http.(*ServeMux).register(...)
	net/http/server.go:2797
net/http.HandleFunc({0x1400204f0b0?, 0x10803e330?}, 0x109ff09c0?
)
	net/http/server.go:2791 +0x9c
net/http/pprof.init.0()
	net/http/pprof/pprof.go:100 +0x94
panic: pattern "GET /debug/pprof/" (registered at net/http/pprof/pprof.go:100) conflicts with pattern "/debug/pprof/delta_heap" (registered at github.com/grafana/pyroscope-go/godeltaprof@v0.1.7/http/pprof/pprof.go:24):
	GET /debug/pprof/ matches fewer methods than /debug/pprof/delta_heap, but has a more general path pattern

Does anybody know what is causing the error and how to fix it?

I was getting the same error

Related to go 1.23 panic at initialization · Issue #118 · grafana/pyroscope-go · GitHub I believe.

I applied same fix as grafana-agent: build with go@1.22 by stefanb · Pull Request #181439 · Homebrew/homebrew-core · GitHub locally and it starts up OK

brew edit alloy

change depends_on “go” => :build to depends_on “go@1.22” => :build.

Then reinstall and restart

brew uninstall alloy
brew install grafana/grafana/alloy
brew services restart alloy
1 Like