Open Vaibhav-1995 opened 4 days ago
Hi Team, Any update on above issue?
I don't think we have enough information to really suggest anything yet. Just a few pointers which might help us:
In general Alloy needs to run on every Kubernetes that you want to profile (using a daemonset), maybe you can share the full values.yaml from helm.
What's wrong?
I am using Java Profiling with Alloy (auto-instrumentation method) for enabling profiling on java pods wthin cluster. Deployed pyroscope and alloy separately using helm chart and have added below config in alloy configmap for java profiling as provided on below link -
https://github.com/grafana/pyroscope/tree/main/examples/grafana-agent-auto-instrumentation/java/kubernetes
But profiling starts on only few random java pods and not on all java pods. Not able to identify that why profiling is not enabled on all java pods.
Steps to reproduce
As per documentation on below link all pre-requisites are done at alloy end in helm chart - but still only in some pods pods profiling has started (refer images below)
https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.java/
System information
Linux 5.10.223-212.873.amzn2.aarch64
Software version
Grafana Alloy v1.4.2
Configuration
Logs
ts=2024-12-02T04:58:02.01712108Z level=error component_path=/ component_id=pyroscope.java.java pid=716979 err="failed to start: asprof failed to run: asprof failed to run /tmp/alloy-asprof-glibc-ed25bbf0083bff602254601eb6c4a927823d988f/bin/asprof: exit status 255 Target JVM failed to load /tmp/alloy-asprof-glibc-ed25bbf0083bff602254601eb6c4a927823d988f/bin/../lib/libasyncProfiler.so\n"