Debugging OpenTelemetry pipelines when telemetry is missing or wrong
When data is missing or looks wrong at the backend, start by checking what the Collector receives and what it sends. OpenTelemetry is vendor-neutral and does not store or display telemetry, so the Collector is the one place in the path where you can inspect data before any backend has a chance to hide, filter or reshape it. The Collector's built-in diagnostic tools answer three different questions, and choosing the right one first saves time. The debug exporter answers what data actually passes through a pipeline. zPages answers how the Collector's pipeline components are behaving and what trace spans it has seen. pprof answers where CPU time and memory are going inside the Collector process. Treat all three as diagnostic aids for an investigation, not as monitoring. They are designed for short, focused sessions, and they are not a substitute for the internal metrics and alerts covered in the Collector monitoring section.
Use the debug exporter first when you suspect the content of the data is wrong, such as missing attributes, unexpected resource names, or a processor that is altering spans. Add it to the pipeline's exporters with a verbosity setting appropriate to the question, then confirm the output matches what you expect at each stage. Its output can contain sensitive values, so run it against a test or narrowed pipeline and remove it afterward. Use zPages when you need to see whether spans are arriving and what state the pipeline components are in. Use pprof only when the Collector is slow, consuming too much memory or restarting, because profiling answers a performance question, not a data question. Confirm which of these endpoints your Collector distribution includes, since component availability depends on the build you deploy.
Which debugging tool answers which question
This table compares the three built-in Collector debugging aids by the question each one answers, where its output appears, what it costs to enable and when to leave it off. Read it as a routing guide: start with the symptom, then pick the tool that shows the data you need. The main takeaway is that the debug exporter shows data content, zPages shows pipeline state, and pprof shows resource use.
| Tool | Question it answers | Where output appears | Cost of enabling it | When to leave it off |
|---|---|---|---|---|
| Debug exporter | What exactly is in the telemetry passing through this pipeline? | Collector process standard output or logs | Verbose output can flood logs and add CPU and disk load | Production pipelines at high volume, or when detailed output could expose sensitive attributes |
| Debug exporter verbosity | How much detail should each record show? | Same as the debug exporter output | Higher detail levels increase log volume in proportion to the data | Leave at the lowest level that answers the question; confirm the keys and levels in the debug exporter README for your Collector version |
| zPages extension | Which receivers, processors and exporters are running, and what is queued or failing? | A local HTTP web page served by the extension | Small runtime overhead; the page exposes internal pipeline state | Any endpoint reachable beyond localhost without authentication and network restriction |
| pprof extension | Where is the Collector spending CPU or memory? | Profile endpoints served over HTTP for use with Go profiling tools | Profiling adds overhead while a profile is collected; profile data can reveal internals | Steady state in production; enable for a bounded investigation and disable afterward |
| Extensions in the service section | Is the tool actually running? | Collector startup configuration | Configuration change and a restart or reload | Confirm the extension is listed under extensions and also under service extensions, or it will not start |
Where the debug exporter and extensions sit in a pipeline
The diagram starts at the receivers, where telemetry enters the Collector, and follows it through processors into the exporters that send it to a backend. The debug exporter is a side branch off the pipeline that prints what flows through, so you can inspect data without changing the production path. The zPages and pprof extensions sit beside the pipeline and expose HTTP endpoints. Those endpoints cross the boundary to your workstation through a port-forward or a network route, so check who can reach them and whether they are bound to localhost before you open them.
Debug exporter branches off the pipeline, while zPages and pprof form an access path to protect.
Enabling the debug exporter and extensions in a test pipeline
This sequence turns on the debug exporter and the zPages and pprof extensions in one isolated test pipeline, so you can confirm known telemetry flows through the Collector before you expose any diagnostic endpoint. It produces a working test setup and a short list of verified outputs.
Confirm the Collector distribution includes the components
Check that the Collector binary you run contains the debug exporter and the zPages and pprof extensions. Run the Collector's component listing for your release, or review the distribution manifest if you build your own. If a component is missing, use the Collector Builder to produce a minimal distribution that includes only the components you need, rather than the full contrib image. Confirm the component names and config keys against the README for each component in the release you run, since names and stability levels change between releases. The step is done when the listing shows all three components under the expected types.
Create an isolated test configuration
Copy your current Collector configuration into a separate test file and run it on a non-production host or a separate namespace. Keep the production pipeline untouched so diagnostic output cannot leak into live data paths or consume production resources. Store the file with the same access controls you apply to other Collector configuration, because it will contain endpoint settings. The step is done when the test Collector runs against a test receiver and the production pipeline is still sending data as before.
Add the debug exporter to one pipeline
Add a debug exporter under the exporters section and reference it only in one traces pipeline, for example in the pipeline's exporters list alongside the existing exporter. Set the verbosity you need, starting with the basic level, and confirm the available options in the debug exporter README for your release. Leave metrics and logs pipelines unchanged for now so you can attribute output to a single path. The step is done when the Collector validates the configuration without errors and starts.
Enable the zPages and pprof extensions
Add the zPages and pprof extensions under the extensions section with their endpoint settings. Bind each endpoint to the loopback address, such as localhost with the port named in the README, so the endpoints are reachable only from the host itself. Do not use a wildcard bind for a first test. Then add both extension names to the service extensions list, because defining an extension without listing it under service does not activate it. The step is done when the Collector starts and the logs show each extension started.
Verify the endpoints listen only on the intended interface
From the host, request the zPages and pprof endpoints on localhost and confirm they respond. Then, from another machine on the network, attempt the same requests and confirm they fail. Check the listening sockets on the host with a standard tool such as ss or netstat to confirm the bound address. If the endpoints answer on a non-loopback address, stop, correct the bind setting, and restart before continuing. The step is done when local requests succeed and remote requests are refused or time out.
Send a known test trace, metric and log
Use a test client or a telemetry generator to send one trace span, one metric data point and one log record with distinctive attribute values, such as a test name and a unique run identifier. Send them to the test receiver so the data passes through the pipeline you configured. Choose values that are easy to search for in the debug output. Do not use real customer or personal data in the test payload. The step is done when the test records have been sent without client errors.
Confirm each record appears with expected attributes
Read the Collector's standard output or log stream and search for the run identifier. Confirm that the trace span, metric and log record each appear with the attribute names and values you sent, and that resource attributes are present. Note any attribute that is missing, renamed or unexpectedly added, because those differences often come from processors or receiver settings. Only the traces pipeline has the debug exporter attached, so expect the metric and log checks to fail until you add the exporter to those pipelines in a later step. The step is done when the trace record appears as expected and you have recorded the outcome for each signal.
How to expose zPages and pprof without opening the Collector to attackers
zPages, pprof and the debug exporter are useful during an incident because they show what the Collector is doing internally. The same features can leak configuration, profiles and sensitive attribute values if they are reachable by the wrong people. The cards below cover the risks to check before you enable these tools and the controls that keep them scoped to the troubleshooting window.
Check default bind addresses
Since Collector v0.110.0, server components bind to localhost by default rather than 0.0.0.0. Widening a bind address for zPages or the pprof endpoint is therefore a deliberate change, and it should appear in the configuration review. Check each extension block for an endpoint value that names an external interface, and confirm the container port mapping and Kubernetes Service match your intent. Keep the endpoint on localhost where a sidecar or local port-forward is enough.
Limit who can read pprof
The pprof endpoint exposes heap, goroutine and CPU profiles. These show internal code paths, memory contents and configuration details that help an attacker plan an attack against the Collector. Treat profile access as privileged. Put the endpoint behind a network policy that admits only the operator's jump host or debugging namespace, and require authentication at any ingress that reaches it. Turn it off when the investigation ends.
Redact before the debug exporter
The debug exporter prints the telemetry it receives, including attribute values such as user identifiers, tokens or query text. Place the redaction processor in the pipeline ahead of the debug exporter so sensitive attributes are removed before anything is written to stdout or a log collector. Confirm the processor's rules against a sample payload first, because a missed key will appear in the output and in every log system that stores it. Use a dedicated debug pipeline for these tests, not the production traces path.
Remove verbose debugging after use
Leaving the debug exporter at detailed verbosity or leaving a debug pipeline attached in production multiplies output volume and exposure. Record the change in the incident ticket with the time it was enabled. Set the exporter back to its normal configuration, delete any temporary pipeline, and restart or reload the Collector through your normal change process. Check the log volume afterward to confirm the output stopped.
Authenticate port-forwards and ingress
Engineers often reach zPages through a kubectl port-forward or an ingress rule added during an incident. A port-forward is only as safe as the workstation and account that opened it, and an ingress without authentication exposes the endpoint to anyone who can reach the host name. Require SSO or an authenticating proxy in front of any ingress, and use role-based access so that only the on-call group can create the rule. Remove the ingress rule when the investigation closes.
Keep unredacted data out of shared logs
Debug output is often copied into tickets, chat channels and shared log stores during an investigation. If the redaction step was skipped or incomplete, sensitive values travel with the copy. Store the Collector configuration in a secured location, restrict who can read pod logs in the namespace, and review pasted excerpts before they leave the incident channel. Ask your security team which log stores and retention rules apply to debugging output.
Reading zPages and pprof output during a live incident
Read the tools in a fixed order during an incident: first the pipeline view, then trace details, then pprof only if memory or CPU is the suspect. Start with the zPages pipeline view to confirm which receivers, processors and exporters are active in the running Collector. If an expected receiver is missing or an exporter is absent, you have found a configuration or loading problem before you look at any data. Compare the list with the configuration file actually mounted in the running container, because a stale file or an unexpected override is a common cause of confusion during an incident.
Next, use the trace span details page to check that attributes and resource fields arrive as your instrumentation intends. Look for the service name, the resource attributes your Kubernetes or host metadata should add, and the span attributes your sensitive-data rules should have removed. Mismatches here point back to instrumentation or to processors earlier in the pipeline, not to the exporter. Pair this with the debug exporter, but keep verbosity low while the pipeline is under load. Higher verbosity writes every record to the Collector's own logs, which can slow processing and flood the log stream, so raise it briefly and only on a narrow test pipeline.
Use pprof when memory or CPU is the suspect, and capture profiles while the problem is happening. Take a heap profile and a CPU profile during the failure, then take the same set from a healthy instance running similar load, and compare them. Confirm with your platform team which pprof endpoint your build exposes and whether it is reachable only from a protected administrative network, since the endpoints reveal internal detail. Remember that all three tools show a point-in-time view. Record the time of each capture next to your metrics and logs, and treat a single snapshot as a clue to be confirmed, not a verdict.
Where to enable debugging in local, Kubernetes and gateway deployments
A Collector running on a developer workstation or a single test host is the safest place to learn the debugging tools. The endpoints are normally bound to localhost, so the reader reaches them directly from the same machine without opening any network path. Use this environment to confirm that a receiver accepts data, that a processor changes it the way you expect, and that the exporter output looks right before you copy the configuration anywhere else.
- Direct local access: Open zPages and pprof on localhost at the ports set in the extension configuration, and confirm the bind address in your own build before relying on it.
- Debug exporter on one pipeline: Attach the debug exporter only to the pipeline under test, such as a traces pipeline with one test receiver, so output stays readable.
- Verbosity kept low: Start with basic verbosity and raise it only for a short capture, because detailed output on a busy host fills the terminal and logs quickly.
- Synthetic input only: Send generated test telemetry rather than real application data, so no sensitive attributes are printed to a shared console.
- Remove before promotion: Delete the debug exporter and any debug-only extension entries from the configuration before the file moves to a shared environment.
Before leaving this environment, check that the debugging settings are absent from the configuration file you plan to deploy.
In a Kubernetes deployment, the Collector runs as a pod that is usually reachable only inside the cluster. The clean access path is a port-forward from an engineer's workstation to the one pod or service being debugged, which keeps the endpoints off the network. Exact manifests, service definitions and port names depend on the chosen deployment method, such as a Helm chart, the Operator or hand-written manifests, so confirm those details against your own setup.
- Port-forward to one pod: Use kubectl port-forward to a specific Collector pod for zPages and pprof, which avoids creating a Service that others can reach.
- No ingress for debug ports: Do not add an Ingress or LoadBalancer rule for the debugging extensions, because they expose internal state to anyone who can reach the route.
- Per-pipeline debug exporter: Attach the debug exporter to the one pipeline being investigated, and leave production pipelines free of it.
- Restricted access in the cluster: If a shared debugging route is required, limit it with network policies and cluster RBAC to the platform team, and confirm that your network policy supports the chosen port.
- Time-limited changes: Roll out the debugging configuration for a defined window and revert it, with the change recorded in your deployment tooling.
Check that the debug settings are removed from the values or manifests after the investigation and that no Service still exposes the debugging ports.
A gateway that receives data from many teams is the highest-risk place to enable debugging. Its zPages and pprof endpoints reveal configuration, pipeline names, queue state and runtime memory for every tenant that sends data through it, and the debug exporter would print other teams' telemetry. Treat any change here as a controlled operation, and prefer to reproduce the problem on a copy of the pipeline in a lower environment when possible.
- Never publish through a shared service: Do not expose the debugging endpoints through the gateway's shared Service, load balancer or API route, because every consumer of the gateway can then reach them.
- Access by the operators only: Reach the endpoints from a bastion or an operator session with port-forward, and record who opened the session and when.
- Scope the debug exporter tightly: Create a dedicated pipeline that matches only the tenant or test source under investigation, so other teams' data is not printed, and confirm the filter with a test sample first.
- Reduce printed content: Use the lowest verbosity and avoid logging attributes that may carry personal or regulated data, and rely on redaction settings already in your pipeline.
- Coordinate with consuming teams: Tell affected application owners before a capture, because the gateway's shared resources and any added load can affect them.
Before closing the investigation, confirm that the scoped debug pipeline is removed and that no team's data was retained in console or log storage.
What to confirm before relying on these tools in your environment
The debug exporter, zPages and pprof are useful only if your Collector build includes them, they behave as expected in your release, and exposing them does not create new risk. Work through these checks in a test pipeline before you rely on them during an incident.
Component stability levels
Core Collector components carry mixed stability levels, and each component's README records its status for signals and features. Check the README for the debug exporter and any receiver or processor you plan to trace through before you treat its output as a stable reference. A component marked as in development may change its configuration keys or output format between releases, so pin the version you tested and recheck the README after every upgrade.
OpenTelemetry statusWhether your distribution includes the tools
The debug exporter, zPages and pprof are not guaranteed in every build. A minimal build made with the Collector Builder contains only the components you list, so a custom image may lack the extension you expect. Run the Collector binary with the version flag or inspect the component list in your image before planning a debugging session, and confirm each tool is present in the exact image running in your cluster.
Endpoints and config keys for your release
Endpoint paths, port numbers, verbosity values and config keys can differ between Collector releases and between contrib and core distributions. Confirm the keys for the release you run against its component documentation and release notes, not against examples copied from older blog posts. Record the working configuration in your runbook so the next responder does not rebuild it from memory.
Collector release notesOutput volume and performance impact
Detailed debug output can produce large volumes of log lines and consume CPU and memory on the Collector instance that prints them. Test the highest verbosity level against realistic traffic in a staging pipeline and measure the effect on throughput and queue depth. Set a time limit on high verbosity during live incidents and reset it once you have the evidence you need.
Log retention and data handling rules
Debug output prints the telemetry itself, which can include attribute values, identifiers or other sensitive fields that your pipeline would normally redact. Ask your security and compliance owners whether printed telemetry may land in your log platform, how long it may be kept, and who may read it. If those rules forbid it, route debug output to a restricted destination or use it only in non-production environments.
Default bind behavior in your version
Since Collector v0.110.0, server components bind to localhost by default rather than to all interfaces. Confirm that the version you run applies this default, and check whether your configuration overrides the listen address for zPages or pprof. If you expose these endpoints through a sidecar, port forward or load balancer, restrict access with network policy and authentication so that profiling and internal state are not reachable from untrusted networks.
Collector security practicesWhat debugging OpenTelemetry pipelines costs and what it needs from your team
How much effort does basic debugging of an OpenTelemetry Collector take?
Basic debugging is a bounded task for an engineer who already runs the Collector, but the effort grows with how many pipelines, receivers and exporters are involved. Turning on the debug exporter for one pipeline and reading its output is quick. Tracing a problem across several pipelines, adding zPages and pprof access, and comparing what goes in with what comes out takes longer. The main drivers are the number of pipelines, how many distinct telemetry types flow through them, whether the Collector runs as an agent or a gateway, and how much a team already knows about the configuration. Ask any partner for a written scope that lists the pipelines, the Collector deployments and the number of problems to be investigated, because those items set the effort more than any single tool does.
Can our own team debug the Collector without outside help?
In most organizations, yes, for routine issues. The debug exporter, zPages and pprof are built into the Collector and documented in its own project materials, so an engineer with access to the configuration and the running process can use them. Outside help becomes more useful when the problem spans several teams, involves sensitive data that cannot be viewed freely, or sits in a regulated environment where exposing diagnostic endpoints needs formal review. Check whether your team has the time to repeat the investigation across environments and whether it can keep diagnostic settings out of production afterward. A short internal trial on a non-production Collector will show quickly where the gaps are.
What skills does the team need to debug OpenTelemetry pipelines?
The work needs three skill sets that usually sit in different people. The first is Collector configuration: reading receivers, processors, exporters, pipelines and extensions in YAML, and knowing which component handles which signal. The second is Kubernetes or host access: knowing how to port-forward to a pod, read container logs, change a ConfigMap or service definition, and restart a workload through the approved change process. The third is trace reading: recognizing span relationships, parent IDs, resource attributes and timestamps in debug output. Engineers who understand the signal they are chasing, such as logs or metrics, will also move faster. Check these skills before starting, and ask any partner to name who on their side will hold each one.
How long does a first diagnosis take?
The duration depends on pipeline size, how much access the team can grant, and how quickly a reproducible case can be captured. A single gateway with one exporter and a clear symptom usually diagnoses faster than a multi-cluster agent fleet with several back ends and sampling rules. Access is often the slowest step: approvals for cluster access, network reachability to zPages and pprof, and a test environment that matches production all add waiting time that no engineer controls. We cannot state a typical duration from supplied figures, so ask for a timeline in the written scope with stated assumptions about access, environments and the number of components, and confirm which of those assumptions your organization can meet.
What does a partner engagement cover compared with work done internally?
A partner engagement usually covers the investigation itself: reproducing the symptom, enabling and reading the debug exporter output, using zPages and pprof to find the cause, proposing configuration changes, and documenting what was found. Internal work usually covers approving changes, deploying them through your own pipeline, monitoring the result, and keeping the diagnostic settings from staying in production. Engagements are normally fixed-scope, so the written scope should name the pipelines covered, the deliverables (findings, configuration changes, a runbook note), and what is excluded, such as backend storage or application instrumentation. Any ongoing monitoring or repeat testing is typically a separate retainer.
What must our team provide before debugging starts?
Four things make an investigation move: a non-production environment that mirrors the Collector configuration, sample data that reproduces the symptom without exposing regulated content, access to the Collector and its host or cluster, and a named change approver. Sample data should be synthetic or scrubbed, since the debug exporter prints full telemetry content to logs. Access should be scoped to the Collector namespace or host, and any zPages or pprof endpoints should be opened only for the investigation window, bound to localhost or reached through a controlled tunnel. Agree on how configuration changes are approved and rolled back before the work begins, so fixes can be deployed without delay.
What should we ask for in a quote for this work?
Ask for a written scope that lists the in-scope Collector deployments, pipelines and signals, the diagnostic tools to be used, and the exact deliverables. Ask how access will be granted and removed, which environments will be used, and how sensitive data in debug output will be handled. Ask what is one-time, such as the first investigation and documented findings, and what recurs, such as retesting after upgrades or ongoing support under a retainer. Ask which of the team's responsibilities are assumed in the estimate, and what changes the price or timeline if an assumption fails. Quotes follow from the written scope, so a clear scope is the strongest tool for comparing offers.
How DeployOpen scopes and supports Collector debugging work
DeployOpen treats Collector debugging as a bounded piece of work with written scope, a defined set of pipelines and clear handover. We plan and implement these diagnostic tools inside your own infrastructure so your team can read what flows through each pipeline and close exposure once the investigation ends.
How we scope
- Engagements are fixed-scope, with the pipelines, receivers and exporters to inspect agreed in writing first.
- The written scope names which Collector instances may run the debug exporter, zPages and pprof, and in which environments.
- We confirm which Collector distribution and version you run, since component availability depends on the build you deploy.
- The scope records who may reach diagnostic endpoints and which network paths they will use during troubleshooting.
How we build
- We configure the debug exporter with verbosity levels that show pipeline flow without writing sensitive payloads to logs.
- We enable zPages and pprof on localhost or behind authenticated access, rather than exposing them on open network interfaces.
- We test each diagnostic setting in a non-production pipeline first to confirm it does not add load or leak data.
- We document the exact configuration keys, file names and steps used so the setup can be repeated or reversed.
How we hand over
- You receive a runbook covering how to open zPages pages, capture pprof profiles and read debug exporter output.
- The handover explains how to turn diagnostic features off again and confirm that no debugging endpoint remains exposed.
- Your team gets a checklist for redacting or removing captured telemetry before sharing it outside the organization.
- We walk through one live investigation with your operators so the tools are used under real conditions.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for pipelines that change often.
- Retainer work can cover re-validating diagnostic settings after each Collector upgrade and component rename.
- We can review access controls on diagnostic endpoints as part of periodic security testing of your telemetry stack.
- Support requests are handled against the written scope, so changes to tooling or exposure follow the same agreed process.

