grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.37k stars 96 forks source link

Beyla panics when instrumenting a Kubernetes Statefulset #1203

Closed marctc closed 2 weeks ago

marctc commented 2 weeks ago

Trying to instrument a Statefultset in a Kubernetes cluster made Beyla crash:

/opt/app-root/pkg/internal/discover/watcher_proc.go:122 +0x2b8
created by github.com/grafana/beyla/pkg/internal/discover.(*pollAccounter).Run in goroutine 247
    /usr/local/go/src/runtime/asm_amd64.s:1700 +0x1
runtime.goexit({})
    /opt/app-root/pkg/internal/discover/watcher_proc.go:122
github.com/grafana/beyla/pkg/internal/discover.(*pollAccounter).Run.gowrap1()
goroutine 290 [runnable]:
    /opt/app-root/pkg/internal/ebpf/tracer_linux.go:219 +0x307
created by github.com/grafana/beyla/pkg/internal/ebpf.RunUtilityTracer in goroutine 247
    /usr/local/go/src/runtime/asm_amd64.s:1700 +0x1
runtime.goexit({})
    /opt/app-root/pkg/internal/ebpf/tracer_linux.go:219
github.com/grafana/beyla/pkg/internal/ebpf.RunUtilityTracer.gowrap1()
goroutine 289 [runnable]:
    /usr/local/go/src/net/http/transport.go:1875 +0x15a5
created by net/http.(*Transport).dialConn in goroutine 179
    /usr/local/go/src/net/http/transport.go:2519 +0xe7
net/http.(*persistConn).writeLoop(0xc02a14c480)
goroutine 274 [select]:
    /usr/local/go/src/net/http/transport.go:1875 +0x15a5
created by net/http.(*Transport).dialConn in goroutine 257
marctc commented 2 weeks ago

This seems to be unrelated, closing for now.