
How Pixie Uses eBPF to Debug Kubernetes Traffic
Pixie is a strong eBPF-based observability tool for live Kubernetes debugging. It collects application and system telemetry without code changes, sidecars, or language agents, then queries that data inside the cluster. Use it to find a slow service quickly. Keep application logs, strace, dmesg, and source analysis for failures inside the process or kernel.
Last updated: 2026-11-11
What is pixie ebpf?
Pixie is an open-source observability tool for Kubernetes applications. It uses extended Berkeley Packet Filter (eBPF) programs and probes to collect telemetry from Linux nodes while workloads keep running.
The useful part is where the probes sit. Pixie observes kernel and user-space activity around application traffic, so you can see requests without adding tracing libraries to every service. You don’t need to rebuild the application or redeploy it just to answer a basic traffic question.
Pixie collects, stores, and queries telemetry locally in the cluster. It can show service maps, cluster resources, application traffic, pod state, flame graphs, and individual full-body application requests.
That gives you fast baseline visibility. It does not give you the business reason behind every failure. If a checkout handler rejects a request because a customer state is invalid, Pixie can show the request and response. The application log and source code still explain the decision.
eBPF also has real limits. It depends on the Linux kernel, the running binary, supported libraries, and the protocol being observed. When a probe returns no data, read the system evidence instead of assuming the workload is idle.
For a smaller introduction to the underlying technology, see this guide to using eBPF in home lab monitoring.
Pixie eBPF observability official guidance
The official Pixie material describes it as an eBPF-powered, open-source observability platform for Kubernetes. Its main promise is baseline visibility without manual instrumentation, application code changes, sidecars, or language agents.
That description is accurate, but baseline is the word that matters. Pixie automatically collects full-body requests, resource and network metrics, and application profiles when the workload and probe path are supported. It cannot recover business context that never crosses an observed boundary.
Use the official Pixie observability documentation to confirm supported protocols, deployment requirements, and query behavior. Then test the exact workload on your own nodes. A support table cannot account for every kernel build, linked library, and runtime layout.
How Pixie uses eBPF in Kubernetes
Pixie places much of its collection logic close to the workloads. eBPF programs attach to kernel hooks, system calls, tracepoints, and selected user-space functions. They collect events such as socket activity, process behavior, resource use, and protocol data.
The application does not call Pixie directly. That is why Pixie can provide visibility without manual instrumentation.
The usual marketing claim stops there. The practical version needs more detail:
- Pixie can observe traffic without application code changes.
- It can associate traffic with Kubernetes pods and services.
- It can collect resource and network metrics.
- It can build application profiles and flame graphs.
- It can capture full-body requests when the protocol and probe support it.
- It cannot infer application state that never reaches the observed boundary.
That last point causes most confusion. Kernel-level telemetry shows what the process did. It does not know what the developer intended.
Pixie’s collection overhead is described as less than 5% of cluster CPU, and in most cases less than 2%. Treat that as a project-level expectation, not a promise for every node, workload, kernel, and protocol mix. Measure the nodes that matter.
Pixie’s Kubernetes observability architecture

Pixie runs inside Kubernetes. The cluster holds the collection and query path, while the user interface, command-line client, or client API sends queries and displays results.
The important component is the Edge Module. It runs close to the node workloads and handles local collection through eBPF ingestors and probes. Those probes gather events from the Linux kernel and supported user-space libraries.
A simplified data path looks like this:
- A workload makes a network request or performs a system action.
- An eBPF probe observes the relevant kernel or user-space event.
- The Edge Module associates the event with the process, pod, node, and connection.
- Pixie stores the telemetry locally in the cluster.
- The query layer runs a PxL script against that data.
- The UI, CLI, or client API returns the result.
The exact deployment components can change with the project. Check the official Pixie documentation before treating an internal component name or deployment manifest as permanent.
This local design is useful during an incident. You don’t have to wait for a remote telemetry pipeline to receive the first useful record. It also means cluster permissions, node kernels, and local resource limits become part of your debugging surface.
Pixie eBPF Kubernetes observability official docs
The official Kubernetes observability documentation is the place to verify installation requirements, supported node configurations, deployment components, and PxL behavior. Pixie runs entirely in Kubernetes and keeps its collection, storage, and query path inside the cluster.
Start with those docs before copying an old deployment manifest. Internal components and installation details can change, while stale examples tend to fail in ways that look like probe problems.
The official description also says Pixie needs no configuration after deployment. Read that as the default path, not proof that every workload will appear. Node scheduling, permissions, kernel support, protocol handling, and user-space libraries still decide what the probes can collect.
HTTP and database tracing have boundaries
Pixie can decode supported HTTP and database protocols by observing traffic near the socket boundary. It can report request timing, response status, connection details, query activity, and other protocol fields when the probe can read and identify the exchange.
Typical supported visibility includes:
| Traffic | Pixie can often show | What can reduce visibility |
|---|---|---|
| HTTP | Requests, responses, status codes, and latency | Large bodies, unusual libraries, unsupported runtimes |
| HTTP/2 and gRPC | Methods, messages, and timing | Stream handling and binary layout |
| MySQL and PostgreSQL | Query text, timing, and errors | Prepared statements and library differences |
| Redis and Kafka | Commands, topics, and timing | High-volume traffic and unsupported client paths |
| DNS | Lookups and response timing | Encrypted or unusual DNS paths |
This is where pixie ebpf tracing earns its place. You can inspect live traffic without adding a trace header or wrapping every handler.
Still, a socket view is not a packet capture. If you need retransmissions, packet flags, or interface-level drops, use packet tools and inspect the kernel counters. This guide to monitoring packet drops with eBPF covers that lower layer.
Pixie’s database view also has a hard boundary. A query may be visible while its useful parameters are hidden by prepared statements. An application error may appear as a failed response while the actual cause remains inside the database or handler log.
Pixie eBPF HTTP tracing official docs
The official HTTP tracing documentation explains which protocols and request fields Pixie can collect. Use it to check HTTP, HTTP/2, gRPC, and encrypted traffic support before blaming an empty table on the application.
However, documented protocol support does not guarantee visibility through every client library or runtime. Pixie still has to identify the connection, associate it with the correct process, and decode the exchange. Large bodies, unusual libraries, stream behavior, and unsupported code paths can reduce what appears.
Generate one request with a known time, route, and response. Then query for that exact exchange and compare it with the application log. That test tells you more than a populated dashboard with traffic you cannot identify.
TLS tracing uses user-space probes
Encrypted traffic needs a different approach. A packet probe sees ciphertext after TLS has protected the data. Pixie can instead attach eBPF user-space probes, called uprobes, to the TLS library’s API.
The probe observes plaintext passed into the TLS library before encryption and returned from the library after decryption. That can restore HTTP or gRPC visibility without breaking the connection.
Pixie’s TLS tracing documentation describes the approach directly: instead of using eBPF to snoop data at send() and recv(), uprobes attach to the TLS library API.
The redesigned detection path uses a BPF map. On SSL_write or SSL_read entry, Pixie records the process and thread context. The underlying syscall probe then checks whether that map contains an entry for the process and stores the socket file descriptor when it does.
That mechanism depends on the running binary and TLS library. Visibility can fail when you use:
- A statically linked binary.
- An uncommon TLS implementation.
- Stripped or changed symbols.
- A runtime layout Pixie does not support.
- Custom encryption above the TLS layer.
- A library version the probe does not recognize.
Do not treat an empty TLS table as proof that no requests exist. Check the binary, library mappings, and application logs. If you need to understand encrypted traffic at a lower level, see this explanation of tracing VPN traffic across encryption.
Use Pixie for live Kubernetes debugging
Pixie works best as a narrowing tool. Start with the symptom, then reduce the search area until you have one service, connection, query, or process worth investigating.
A useful incident path looks like this:
- Check the service map and application traffic.
- Find the service with rising latency or error responses.
- Compare request timing across callers and backends.
- Inspect pod state, resource use, and network activity.
- Drill into the protocol or database view.
- Compare the result with application logs.
- Use
journalctl,dmesg, orstracewhen the evidence leaves the application boundary.
Pixie can tell you that one service sends slow database queries. It may not tell you whether the database is blocked, the process is waiting on a file descriptor, or the node is dropping packets.
That is where people reach for a dashboard and stop thinking. Don’t. Query results are evidence, not a diagnosis.
For example, a latency increase with normal CPU may point toward a downstream service, DNS, a blocked socket, or a database wait. Check the request path and then confirm the suspected layer with logs or system tools. If you need kernel-level profiling after Pixie identifies a hot node, use eBPF kernel performance profiling.
Install Pixie and verify the data path

Use the official deployment instructions for your Kubernetes environment. Pixie runs on Linux nodes only, and the documented supported Linux kernel level is v4.14+.
The Pixie CLI installer can be run from a Linux shell or Mac terminal:
bash -c $(curl -fsSL https://work.withpixie.ai/install.sh)
For a Minikube deployment, the documented Pixie CLI command is:
px deploy --check=false
That command installs the Pixie CLI deployment and generates the Kubernetes resources. It does not prove that telemetry collection works.
Check the Pixie namespace next:
kubectl get pods -n pl
You want to see the Pixie components reach a ready and running state. A pod that repeatedly restarts is not a healthy collector, even if the deployment command completed.
Then generate known traffic. Make a request between test services, run a database query, or create another reproducible workload. Open the Pixie UI or run a PxL query and confirm that the request appears.
The verification order matters:
- Confirm the pods are ready.
- Confirm the Edge Module runs on the node carrying the workload.
- Generate traffic you can identify.
- Query for that traffic.
- Compare the result with application logs.
- Check node and kernel messages if the record is missing.
A dashboard with no known test request proves very little. You need an event with a known cause and time.
Write PxL queries for focused answers
PxL is Pixie’s Python-like query language. The same language works across the Pixie UI, CLI, and client APIs.
Use PxL to answer one operational question at a time. Do not begin by building a giant dashboard. That gives you many panels and no clear diagnosis.
Good first questions include:
- Which service has the highest request latency?
- Which pods return the most errors?
- Which database calls take the longest?
- Which process is opening an unusual number of connections?
- Which workloads produce traffic on a selected node?
- Which requests have unusually large bodies?
A focused query gives you a result you can compare with another source. For example, compare a high-latency service in Pixie with its pod logs and Kubernetes status. If the timestamps do not line up, the problem may be in collection, clock behavior, or your query filter.
PxL is useful because it lets you move beyond canned views. The query is also an executable description of what you checked. Save the useful ones, keep them narrow, and remove fields you cannot explain.
When Pixie telemetry is missing or misleading

Start with the Pixie components. Do not reinstall the cluster because one table is empty.
Use this order:
- Check Pixie pod status with
kubectl get pods -n pl. - Read the failing pod logs.
- Confirm the Edge Module is on the workload’s Linux node.
- Check permissions and required kernel features.
- Confirm the workload uses a supported protocol path.
- Reproduce traffic with a known request.
- Compare Pixie output with application logs.
- Use
strace,dmesg, or source inspection when the probe is not the issue.
The kernel can tell you whether a process is making the calls you expect. strace can show whether it is blocked in a syscall, waiting on a file descriptor, or failing before the network path begins. dmesg can expose verifier errors, denied operations, driver failures, and other kernel-level problems.
Read the output before copying a fix from a forum. A missing record may come from a permission problem, an unsupported library, a missing kernel feature, a pod scheduled on an uncovered node, or a query filter that excludes the event. Those are different failures.
Pixie also depends on portability across Linux distributions and kernel builds. The documented kernel level is only the starting point. A kernel can meet the stated requirement while a specific probe still fails because a hook, symbol, verifier rule, or runtime layout differs.
When the evidence stops at the probe, read the Pixie logs and kernel messages. When it stops inside the application, use the application’s logs and strace. The right tool depends on the layer that actually failed.
Project status and CNCF context
Pixie is an open-source project released under the MIT License. It is also listed as a CNCF project. The CNCF affiliation tells you that Pixie belongs to the cloud-native project ecosystem and has public project records.
It does not guarantee that every kernel, runtime, managed Kubernetes service, or protocol behaves identically. CNCF status is project context. Support for your workload still comes from the Pixie documentation, deployment checks, and a test against your own nodes.
Use the CNCF Pixie project page for the project’s current affiliation and status. Use the official Pixie documentation for installation, supported protocols, PxL, and deployment details.
Pixie is a good fit when you need fast, broad visibility into Kubernetes traffic without changing application code. It is a poor fit as your only source of truth. Keep logs, metrics, application traces, and low-level Linux tools available because the first layer of telemetry is often where the real failure hides.
FAQ
Does Pixie replace application instrumentation?
No. Pixie gives you baseline visibility without code changes, but application instrumentation carries business context. Use Pixie to find the slow service or failing request, then use application evidence to explain the decision inside the code.
Can Pixie inspect encrypted HTTP traffic?
Sometimes. Pixie can use uprobes on supported TLS library functions to observe plaintext before encryption and after decryption. Static linking, unsupported libraries, stripped symbols, and custom runtime layouts can prevent that tracing.
Does Pixie work on every Kubernetes node?
No. Pixie collects through Linux nodes and depends on kernel support, permissions, scheduling, and probe compatibility. A workload on a node without a working Edge Module can appear invisible even when Pixie is healthy elsewhere.
Is Pixie data sent outside the cluster?
Pixie collects, stores, and queries its telemetry locally in the cluster. Check the current deployment and integration documentation before adding any external export path, because that changes the data flow and its security requirements.
When should I use strace instead of Pixie?
Use strace when you need to see the process’s system calls, blocking points, file descriptors, or exit codes. Pixie is better for broad Kubernetes traffic and service-level visibility. strace is better when one process is doing something wrong and you need the exact call that proves it.
