grafana / grafana/pyroscope

Demangle not working on ebpf with rust code

Open
#3,982 0 comments 3 reactions 0 assignees View on GitHub
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:

![Image](https://github.com/user-attachments/assets/d1c05b14-3044-4af0-9c40-ba5e44633dd0)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.