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
10.1k stars 610 forks source link

grafana-agent: pyroscope.java component should infer service name for k8s targets similar to ebpf #2945

Open korniltsev opened 10 months ago

korniltsev commented 10 months ago

In ebpf we do "ebfp/namespace/container" We should have something similar for java , so that targets do not get merged to "unspecified" in k8s ever

simonswine commented 10 months ago

I think pyroscope.ebpf and pyroscope.java should attach all they knew about the profile collected as internal labels (starting with __). Then we should have a pyroscope.relabel comopnent, that allows us to populate the service_name according to a ruleset.