Troubleshoot OpenTelemetry profiling
Use this page when OpenTelemetry profiling doesn't deliver profiles to the Profiling app. Start with the symptom that matches what you see in the Elastic Agent logs or in Kibana. For the requirements and the deployment steps, refer to Get started with OpenTelemetry profiling.
The profiler can't load its eBPF programs when it lacks privileges or runs on an unsupported kernel, and Fleet doesn't always report this as an error. Check the Elastic Agent logs for messages such as:
failed to load eBPF tracer: failed to read kernel symbols: unable to read kallsyms addresses - check capabilities
Run the agent as root, or grant the CAP_SYS_ADMIN capability, and confirm that the host meets the kernel requirements.
The profiler needs access to scheduler tracepoints. Mount tracefs on the Linux host:
sudo mount -t tracefs tracefs /sys/kernel/tracing
For a container deployment, expose that directory at /sys/kernel/tracing in the container. The Helm profiling preset configures this container mount for you.
kind runs its nodes in containers, so the profiler runs in a nested PID namespace. With Elastic Agent 9.6 or later, enable PID namespace translation by adding the following receiver setting to your Helm values:
config:
receivers:
profiling:
pid_namespace_translation_mode: auto
Elastic Agent logs show an error like this one:
action [indices:admin/auto_create] is unauthorized for API key id [...] of user [elastic/fleet-server] on indices [profiling-stacktraces.otel-default]
If the agent's API key lacks permission to create these data streams, ingestion fails even when the templates are installed. As a user with the superuser role, create the missing data streams before the agents start sending data. The event streams include the full stream and downsampled streams from 5pow01 through 5pow11. Run only the requests for streams that do not already exist:
PUT _data_stream/profiling-events-all.otel-default
PUT _data_stream/profiling-events-5pow01.otel-default
PUT _data_stream/profiling-events-5pow02.otel-default
PUT _data_stream/profiling-events-5pow03.otel-default
PUT _data_stream/profiling-events-5pow04.otel-default
PUT _data_stream/profiling-events-5pow05.otel-default
PUT _data_stream/profiling-events-5pow06.otel-default
PUT _data_stream/profiling-events-5pow07.otel-default
PUT _data_stream/profiling-events-5pow08.otel-default
PUT _data_stream/profiling-events-5pow09.otel-default
PUT _data_stream/profiling-events-5pow10.otel-default
PUT _data_stream/profiling-events-5pow11.otel-default
PUT _data_stream/profiling-stacktraces.otel-default
PUT _data_stream/profiling-stackframes.otel-default
PUT _data_stream/profiling-executables.otel-default
PUT _data_stream/profiling-hosts.otel-default
Check that the schema selector is set to OpenTelemetry and widen the time range. Run the event count query in Verify that profiles are flowing. If the count is 0, check the agent's health and logs in Fleet. The resources.has_data field from GET /_profiling/status covers both profiling schemas, so true does not by itself confirm OpenTelemetry ingestion. In an OpenTelemetry-only deployment, resource_management.enabled and resources.created can both be false: those fields describe Universal Profiling resources.