grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.66k stars 577 forks source link

Pyroscope: Provide an example for ebpf sidecar collection #3285

Open simonswine opened 2 months ago

simonswine commented 2 months ago

This shows how Alloy can be used to collect profiles as a sidecar. I am not too sure if this is something we should advertise too heavily, but valuable if you would only like to collect a very specific workloads, that is supported by eBPF.

Maybe we also want to have something like pyroscope exec was for this usecase.

The test workload launches some short-lived sub processes of varying length, the problem is that collection requires to have a quite low discovery.process.refresh_interval

simonswine commented 2 months ago

@korniltsev if you got a moment, would like to understand how you feel about this