Demangle not working on ebpf with rust code
- Dominant language
- Go
- Stars
- 11.7k
- Forks
- 802
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 80
Description
Hello! I'm trying to setup ebpf profiles. Currently, I'm running grafana alloy with the following configuration:
```
discovery.kubernetes "all_pods" {
role = "pod"
selectors {
field = "spec.nodeName=" + sys.env("HOSTNAME")
role = "pod"
}
}
discovery.relabel "local_pods" {
targets = discovery.kubernetes.all_pods.targets
rule {
action = "drop"
regex = "Succeeded|Failed"
source_labels = ["__meta_kubernetes_pod_phase"]
}
rule {
action = "replace"
regex = "(.*)@(.*)"
replacement = "ebpf/${1}/${2}"
separator = "@"
source_labels = ["__meta_kubernetes_namespace", "__meta_kubernetes_pod_container_name"]
target_label = "service_name"
}
}
pyroscope.ebpf "local_pods" {
forward_to = [ pyroscope.write.endpoint.receiver ]
targets = discovery.relabel.local_pods.output
demangle = "full"
python_enabled = false
}
pyroscope.write "endpoint" {
endpoint {
url = "http://pyroscope.monitoring:4040"
}
}
```
This works, however my function names are still mangled, as you can see in the image:

I'm running alloy 1.7.1 and pyroscope 0.12, both on kubernetes.
Posting it here since it seems the demangle happens in a package here. Let me know if you need anything else!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.