OpenTelemetry profiling: when teams add the profiles signal
A platform team may already collect traces, metrics and logs and still be unable to answer a basic question: which functions inside a service consume the CPU and memory it pays for. Traces show where a request waits, and metrics show that a pod is hot, but neither points to the lines of code or the library calls responsible. Profiles are the signal built for that question. OpenTelemetry defines profiles as a fourth signal alongside traces, metrics and logs, and it can export them over OTLP to the Collector or to a compatible backend. The profiles signal is currently at Alpha status, so the data model and the tooling around it can still change between releases.
On Linux, eBPF profilers can capture stack traces from running processes without modifying application code, restarting services or adding an SDK to each runtime. That makes whole-system profiling attractive for fleets with many services in several languages. It also moves the work to the platform side: the team must confirm kernel version and privilege requirements on each node pool, decide which namespaces or hosts may be profiled, and check what the profiler captures from memory and command lines. The OpenTelemetry project lists an OpenTelemetry Collector eBPF Profiling Distribution among its pre-built Collector distributions, which is the natural starting point for a pilot. Confirm its current stability level and supported platforms in the distribution documentation before you commit to it. Read the OpenTelemetry profiles documentation for the signal definition and current status.
Add profiling now when a specific performance or cost question cannot be answered from existing signals, such as unexplained CPU growth after a release or memory that climbs between restarts, and when a non-production cluster can host a bounded pilot. Wait when the platform cannot yet grant the required node access, when the profiles signal must be production-grade for a compliance or contractual commitment, or when the backend you plan to use has not confirmed profile support. In either case, write down the decision criteria, the rollback path and the owner of profile data, because stack traces can reveal internal code paths and should be handled under the same access and retention rules as other sensitive telemetry.
How profile data flows from Linux hosts to a backend
The flow starts with an eBPF profiler running on a Linux host, which captures stack traces without changes to the application code. The profiler exports profiles over OTLP to a Collector, which can run as an agent beside workloads or as a gateway that receives from many hosts. The Collector then forwards profiles to a backend that supports the profiles signal. The trust boundary marks the controlled network, so teams should confirm that every hop stays inside it and that the backend accepts OTLP profiles while the signal is still alpha.
Profiles move from eBPF profilers on Linux hosts through Collectors to a backend.
Which profiling option fits which situation
This table compares three ways to add profiling: eBPF whole-system profiling through the Collector distribution, language-level profilers sending profiles through an SDK, and staying with metrics and traces. Read each row to match your services, team skills and tolerance for an alpha signal, then pick the path that fits your most pressing performance question.
| Option | When it fits | What it requires | Main trade-off |
|---|---|---|---|
| eBPF whole-system profiling | Linux hosts where you want stack traces across many services without changing application code | Linux nodes, the Collector eBPF Profiling Distribution, and permission to run privileged eBPF on those hosts | Broad coverage, but the profiles signal is Alpha and host-level privileges need security review |
| Language-level profiler through an SDK | Teams that need profiles tied to a specific runtime or service and can accept an SDK change | An SDK or profiler integration in each service, plus OTLP export to the Collector or a compatible backend | More per-service work and upgrades to track, but closer to application context |
| Metrics and traces only | Teams with an active alpha-signal risk policy, or where current latency and error questions are still unanswered | Existing metrics and trace pipelines, with dashboards and alerts already in place | No profiling data, so CPU hot spots must be found by other methods, such as manual profiling during incidents |
| Pilot on non-critical services first | Organizations that have not yet run eBPF or SDK profiling in their environment | A chosen test cluster or host group, agreed success criteria and a rollback plan | Slower rollout, but it surfaces overhead and permission issues before production |
| Production use decision | Workloads with compliance or change control that require a documented, supported status | Written confirmation of the current status of the profiles signal and the distribution from the project documentation | Must be revisited as the signal moves beyond Alpha, so plan periodic reviews |
Profiling choices by environment: Kubernetes, VMs and non-Linux hosts
On Linux virtual machines, eBPF profilers can capture stack traces across processes on the host without changing application code, which is the main reason the profiles signal is attractive for teams that cannot easily add SDKs to every service. The capture depends on what the kernel allows, so the first task is to inventory kernel versions, kernel configuration and whether the host policy permits loading eBPF programs. Confirm these points with your profiler's documentation and your distribution's kernel vendor before you commit to a rollout plan.
- Kernel version and features: Confirm the minimum kernel version and the BPF features the chosen profiler requires, and check them on every image in the fleet, not only the newest.
- Privileges: Find out which capabilities the agent needs to load programs and read process memory, and whether your security baseline allows them on production hosts.
- Hardened kernels: Check whether lockdown modes or hardening settings restrict BPF or perf events on your builds.
- Symbol availability: Plan how stripped binaries and language runtimes will be symbolized so stack traces remain readable.
- Overhead testing: Measure CPU and memory cost on a representative host before wider deployment.
Before approving the design, check each kernel image against the profiler's requirements and record the exceptions for your security team.
On Kubernetes, the profiling agent normally runs on each node, so the node operating system and kernel set the limits, while the cluster's pod security settings decide what the agent can reach. Managed node pools often use kernels or images that differ from the ones your platform team builds, so the node pool and the profiler configuration need to be reviewed together. Profiling data also carries container and pod metadata, which needs to be mapped correctly for it to be useful in dashboards.
- Node pool coverage: List every node pool and confirm the kernel and container runtime on each one, including spot or autoscaled pools.
- Agent privileges: Confirm which pod security settings, host namespaces and capabilities the profiler needs, and document them for the cluster admission review.
- Metadata enrichment: Plan how pod, namespace and container labels reach profile data so that teams can filter by service.
- Collector placement: Decide whether profile data goes through a node-level agent Collector or a gateway, and size the gateway for the combined load.
- Upgrade coupling: Check how node upgrades change the kernel and whether the profiler version is tested against them.
Ask your platform team to confirm the node image, kernel and admission policy for every pool before the profiler is scheduled cluster-wide.
eBPF whole-system capture is a Linux mechanism, so it is not the path for Windows hosts, and it does not cover macOS or other operating systems in the way it covers Linux. Teams with mixed fleets should treat these hosts as a separate workstream rather than assume the Linux design carries over. The OpenTelemetry profiles documentation describes eBPF capture for Linux, so the alternatives for other platforms need to be confirmed with the tools and vendors that support them, along with their maturity and data format.
- Scope the gap: List the non-Linux hosts that matter for profiling and decide whether they need profiling at all.
- Confirm alternatives: Ask each profiler vendor or project which signals, languages and sampling methods they support on your operating systems.
- Application-level options: Check whether language runtime profilers that run inside the application are available for your stack and whether they emit the profiles signal.
- Maturity: Record the stability of each option, since the profiles signal itself is in Alpha status.
- Data path: Confirm that any alternative can reach your Collector through OTLP or a supported exporter before relying on it.
Document which hosts are covered by Linux capture, which use alternatives and which are out of scope for the first release.
The OpenTelemetry Collector can run as an agent next to services, typically one per host or node, or as a gateway that accepts data from many sources. For profiles, the choice affects where processing happens, how many connections reach the backend and how failures spread. Agent placement keeps capture close to the host and lets each node apply local settings. Gateway placement centralizes configuration, authentication and export but concentrates load and risk, so it needs its own sizing and redundancy plan.
- Agent role: Run the Collector on each host or node to receive local profile data, add resource attributes and forward it, which keeps the data path short.
- Gateway role: Use a gateway to accept profiles from many agents, apply shared policy such as redaction and export to the backend from one place.
- Hybrid layout: Many teams combine both, with agents on nodes and gateways per cluster or region, and should confirm the tier sizes together.
- Failure handling: Decide how the design behaves when a gateway is unavailable, including buffering and whether agents drop data.
- Security settings: Confirm the receiver and authentication settings for profile endpoints, since Collector components bind to localhost by default in recent releases.
Before finalizing the layout, confirm with your Collector and profiler documentation that the chosen roles support profiles data for your exact distribution and version.
How to pilot OpenTelemetry profiling on a Linux fleet
This sequence moves OpenTelemetry profiling from a single non-production host group to a wider Linux fleet, with a check at each step so the team knows whether profiles are arriving and readable before scope grows. It produces a verified pilot and a documented basis for the wider rollout decision.
Choose a non-production pilot scope
The platform or observability lead selects one non-production cluster or a small group of Linux hosts that run representative workloads, such as a service with known hot code paths. Confirm with the owning teams that they accept kernel-level agents on those hosts and that the hosts can run the eBPF profiler under your change process. Record the kernel versions, container runtime and the languages in use, since these determine which stack traces will resolve. The step is done when the team has a written host list, an owner for each host group, and approval from the platform and security teams to proceed.
Select the eBPF profiling distribution
Choose the OpenTelemetry Collector eBPF Profiling Distribution from the pre-built Collector distributions listed by the OpenTelemetry project, rather than building a custom Collector for the pilot. Keeping the pilot on a published distribution limits the number of variables when stack traces fail to arrive. Confirm the distribution's license, its published artifacts and how your team will verify them before deployment. The step is done when the chosen distribution and its artifact source are recorded in the pilot plan and the team has agreed on who installs and maintains it.
Confirm Collector version and component stability
The platform engineer checks the Collector release the distribution is built on, and reads the stability level of each receiver, processor and exporter in the pilot configuration. The profiles signal is in Alpha, so the team should expect interfaces and data shapes to change and should plan to retest after each upgrade. Confirm with your backend vendor which Collector and OTLP profile versions it accepts. The step is done when the team has a pinned Collector version, a list of components with their stability levels, and a written note of any component that is not yet stable.
Configure OTLP export to a profiles-capable backend
Deploy the Collector on the pilot hosts and configure an OTLP exporter that points to a backend able to accept profiles. Confirm that the backend supports the profiles signal at the version you pinned, because the Collector alone does not store or display profiles. Restrict the receiving endpoint to the pilot network, set authentication on the exporter, and keep the configuration file in a secured location with credentials handled outside the file. The step is done when the Collector starts cleanly, reports no export errors in its own logs, and the backend shows a connected source for each pilot host.
Verify stack traces arrive and symbolize
Run the profiled workloads through normal traffic and confirm in the backend that profiles from each host appear with stack traces. Check that frames resolve to function names for compiled binaries and interpreted runtimes in use, and note any frames that remain as raw addresses, since missing debug symbols are a common cause. Compare a known hot function against the team's expectations to confirm the profile reflects real behavior. The step is done when every pilot host has delivered profiles, at least one representative workload symbolizes correctly, and the team has a list of unresolved frame types with the fixes they need, such as symbol packages or build settings.
Measure the pilot's own overhead
Before widening scope, measure the effect of the profiler and Collector on CPU, memory and application latency on the pilot hosts compared with a baseline period without profiling. Use the metrics your monitoring already collects, and confirm with the platform team which thresholds are acceptable for production hosts. Record how the profiler behaves during workload spikes and host restarts. The step is done when the team has before and after figures for each pilot host group and has signed off on overhead against the thresholds it set.
Widen scope in controlled stages
Extend profiling to additional host groups in stages, starting with other non-production hosts and then production hosts that carry the least business risk. Repeat the verification and overhead checks for each new group, because kernel versions, runtimes and symbol availability vary across a fleet. Keep the pinned Collector version until the team has retested it, and treat each Collector or backend upgrade as a new pilot stage. The step is done when each stage has its own check results, the rollout record names the owner of each host group, and the team has a documented decision to proceed, pause or roll back.
Security and operational risks of host-level profiling
Host-level profiling sits closer to the operating system and the code than most telemetry, so it carries risks that ordinary traces and metrics do not. The cards below cover privileged eBPF agents, sensitive data inside profiles, the Collector endpoints that carry them, and the configuration controls that limit exposure.
Privileged eBPF agents
Linux eBPF profilers load programs into the kernel, which requires elevated privileges on the host. Review which capabilities the profiler container or service receives, whether it runs on nodes shared with other tenants, and who can change its manifest or image. Confirm the required kernel features with the profiler's documentation before granting anything beyond what it needs. Treat the profiler as privileged infrastructure, not as an ordinary sidecar.
Profiles docsProfiles reveal code paths
A profile records stack traces, which can expose internal function names, module layout, library versions and the code paths a request takes. That detail helps an attacker map an application and can also reveal business logic to anyone with dashboard access. Decide which services are profiled, who can query those profiles, and whether symbol information leaves the cluster or host.
Authenticated and encrypted Collector endpoints
Profiles travel over OTLP to the Collector and onward to a backend, so every hop needs authentication and encryption. Use the Collector's authenticator extensions, such as OIDC on receivers and oauth2client on exporters, and TLS on each listener. Confirm that the backend accepts only authenticated writers and that tokens are rotated on a schedule your security team sets.
Collector configurationLocalhost binding default
Since Collector v0.110.0, server components bind to localhost by default instead of 0.0.0.0. Upgrades and new deployments that expose a receiver on all interfaces must do so on purpose. Check each receiver's endpoint setting after every upgrade, and confirm with a network scan that only the intended ports are reachable from the networks that should reach them.
Minimal Collector builds
The Collector security guidance recommends building with only the components you need, using the Collector Builder. A profiling pipeline pulls in receivers, processors and exporters that the deployment may never use, and each one adds code to review and patch. Compare the build manifest against the components in the pipeline, and rebuild when the component list changes.
Config best practicesRedaction in the Collector
The redaction processor removes sensitive attributes before data reaches storage. Profiles can carry command-line arguments, environment-derived values and file paths that were never meant for a shared dashboard. Map which attributes each profiled service can emit, write redaction rules for them, and test them against sample profiles before the pipeline reaches production.
Questions teams ask before adding profiling
Is OpenTelemetry profiling production ready today?
Not as a whole. The profiles signal has Alpha status, so its data model and interfaces can still change, and teams should plan for that. Stable parts of OpenTelemetry, such as trace APIs and SDKs in most languages, are a separate matter and do not make the profiles signal stable. Before any production use, confirm the current status on the OpenTelemetry profiles page, check the stability level of each Collector component you plan to run, and decide in advance how you will handle a breaking change in a pre-stable signal.
What does adding profiling cost in effort, and who does the work?
Cost comes mainly from labor, since the signal is open source and the software itself has no license fee. Effort splits into one-time work (choosing the profiler, deploying the Collector distribution, setting up storage and access, and proving the data is useful) and recurring work (upgrades, host kernel and node pool changes, storage growth and on-call). Your own platform team can do all of it, or a partner can take the design and build under a written, fixed scope. Ask any quote to break out each of those items and to state which upgrades and support are included.
Can a small team run profiling on its own?
A small team can if it already runs Linux hosts, Kubernetes or a similar platform, and has someone comfortable with Collector configuration. The harder parts are kernel and privilege requirements for eBPF profilers, choosing a backend that can store and query profiles, and keeping up with an Alpha signal. If those skills are missing, start with one cluster or one service group, write down who owns each component, and decide early whether a partner will cover upgrades and incident support.
How long does a profiling pilot take to plan?
No fixed duration applies, because the length depends on the scope you set. The main drivers are how many hosts and services are in the pilot, whether profiles will be exported to a backend you already run or one you still have to choose, how many approvals security and platform teams need, and whether the kernel or node images on the target hosts need changes. Ask for a written plan that lists each milestone, the people who sign off on each one, and the exit criteria that decide whether the pilot moves forward.
What does profiling need from security and platform teams?
EBPF-based profiling on Linux runs in the kernel, so security teams should review which privileges the profiler agent needs, which nodes it runs on, and what data it collects. Platform teams should confirm kernel compatibility, node pool placement, resource limits and how the Collector is deployed. Stack traces can reveal function names and code paths, so review what is exported and where it is stored, and use access controls on the profile backend. Agree these points before the pilot starts, not during it.
Does profiling replace traces and metrics?
No. Profiles show where CPU time and memory go inside a process, across stack frames, while traces show the path of a request across services and metrics show trends over time. Profiling is most useful as a complement: a latency spike seen in a trace or metric can be investigated with a profile from the same time window, if the backend and timestamps support that correlation. Keep your existing traces and metrics in place while you evaluate profiles, and judge the added value on real incidents.
What should we check in the Collector eBPF profiling distribution?
Start with the distribution's own documentation and the list of components it includes, since the OpenTelemetry project lists an OpenTelemetry Collector eBPF Profiling Distribution among its pre-built Collector distributions. Confirm which receivers, processors and exporters it ships, how it is versioned, and how its releases are signed and verified. Then check that it matches the backend you plan to send profiles to. If you need components outside the distribution, a custom build made with the Collector builder is an option, but it adds build and upgrade work your team must own.
How DeployOpen scopes and delivers profiling pilots
DeployOpen treats OpenTelemetry profiling as a scoped pilot before any wider rollout. The work starts by agreeing which services, hosts and Collector pipelines are in scope, then builds and tests the profiling path in your own infrastructure. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory the Linux hosts and services that would be profiled, and confirm kernel access for eBPF profilers.
- Confirm which profiles signal features and Collector distribution your team will run, since the signal is Alpha.
- Agree in writing which backend receives profiles and how profiling data is retained, access-controlled and reviewed.
How we build
- Deploy the chosen eBPF profiling distribution of the Collector in a non-production environment first.
- Configure OTLP export of profiles to the Collector or a compatible backend, with the pipeline defined as code.
- Test that profiling data is captured without application changes and check overhead on representative workloads.
How we hand over
- Deliver written documentation covering configuration, data flows, access settings and the rollback procedure.
- Walk your platform and security teams through the pilot results, open risks and the criteria for moving to production.
- Record which components are Alpha or otherwise not production ready, so your team can plan for changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, covering Collector and profiler version changes.
- Retest the profiling pipeline after upgrades, since Alpha signal behavior and component names can change between releases.
- Ask for a quote that separates one-time pilot build work from recurring support and retesting effort.

